11spring.application.name =geek
2+ app.name =${APP_NAME:EspacoGeek}
3+ app.frontend.url =${FRONTEND_URL:http://localhost:3000}
4+
25spring.datasource.url =${SPRING_DATASOURCE_URL:jdbc:mysql://localhost:3306/espacogeekdb}
36spring.datasource.username =${SPRING_DATASOURCE_USERNAME:root}
47spring.datasource.password =${SPRING_DATASOURCE_PASSWORD:root}
8+ spring.datasource.hikari.leak-detection-threshold =30000
9+
510spring.jpa.hibernate.ddl-auto =${SPRING_AUTO_DDL:none}
611spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation =true
7- spring.threads.virtual.enabled =true
812spring.jpa.database-platform =org.hibernate.dialect.MariaDBDialect
13+
14+ spring.threads.virtual.enabled =true
15+
916spring.main.allow-bean-definition-overriding =true
17+
1018spring.jpa.properties.hibernate.jdbc.batch_size =100
1119spring.jpa.properties.hibernate.order_inserts =true
1220spring.jpa.properties.hibernate.order_updates =true
13- # spring.devtools.add-properties=false
1421
1522spring.batch.job.enabled =false
1623spring.batch.jdbc.initialize-schema =never
1724
1825spring.graphql.path =/
19-
2026spring.graphql.graphiql.enabled =true
2127spring.graphql.graphiql.path =/graphiql
2228spring.graphql.schema.introspection.enabled =true
@@ -26,20 +32,12 @@ spring.flyway.locations=classpath:db/migration
2632spring.flyway.baselineOnMigrate =true
2733
2834# ===== CORS & Cookie Security =====
29- # Com credenciais, o origin deve ser exato (n?o "*"). Separe por v?rgula para m?ltiplos.
3035spring.mvc.cors.allowed-origins =${SPRING_MVC_CORS_ALLOWED_ORIGINS:http://localhost:3000}
3136
32- # Nome e path do cookie de autentica??o
3337security.jwt.cookie-name =EG_AUTH
3438security.jwt.cookie-path =/
35-
36- # Defina domain se precisar compartilhar subdominios (ex: .seusite.com)
37- # security.jwt.cookie-domain=
38-
39- # SameSite quando a requisi??o for same-site: Lax (padr?o) ou Strict
39+ # security.jwt.cookie-domain=${SPRING_COOKIE_DOMAIN:http://localhost:3000,http://localhost:8080}
4040security.jwt.same-site-when-same-site =${SAMESITE_WHEN_SAME_SITE:Lax}
41-
42- # Validade do token/cookie (ms)
4341security.jwt.expiration-ms =${JWT_EXPIRATION_MS:604800000}
4442
4543# ===== Email Configuration =====
@@ -60,15 +58,3 @@ management.endpoint.health.show-details=always
6058management.prometheus.metrics.export.enabled =true
6159management.metrics.distribution.percentiles-histogram.http.server.requests =true
6260management.observations.key-values.application =${spring.application.name}
63-
64- # Application settings
65- app.name =${APP_NAME:EspacoGeek}
66- app.frontend.url =${FRONTEND_URL:http://localhost:3000}
67-
68- # ! In VSCode, I recommend: "terminal.integrated.scrollback": 100000000
69- # logging.level.org.hibernate=DEBUG
70- # logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
71- # logging.level.web=debug
72- # spring.jpa.show-sql=true
73- # spring.jpa.properties.hibernate.format_sql=true
74-
0 commit comments