Skip to content

Commit ba9ae3b

Browse files
Refactor application.properties for clarity and updates
1 parent 8cd5b60 commit ba9ae3b

1 file changed

Lines changed: 10 additions & 24 deletions

File tree

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
spring.application.name=geek
2+
app.name=${APP_NAME:EspacoGeek}
3+
app.frontend.url=${FRONTEND_URL:http://localhost:3000}
4+
25
spring.datasource.url=${SPRING_DATASOURCE_URL:jdbc:mysql://localhost:3306/espacogeekdb}
36
spring.datasource.username=${SPRING_DATASOURCE_USERNAME:root}
47
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD:root}
8+
spring.datasource.hikari.leak-detection-threshold=30000
9+
510
spring.jpa.hibernate.ddl-auto=${SPRING_AUTO_DDL:none}
611
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
7-
spring.threads.virtual.enabled=true
812
spring.jpa.database-platform=org.hibernate.dialect.MariaDBDialect
13+
14+
spring.threads.virtual.enabled=true
15+
916
spring.main.allow-bean-definition-overriding=true
17+
1018
spring.jpa.properties.hibernate.jdbc.batch_size=100
1119
spring.jpa.properties.hibernate.order_inserts=true
1220
spring.jpa.properties.hibernate.order_updates=true
13-
# spring.devtools.add-properties=false
1421

1522
spring.batch.job.enabled=false
1623
spring.batch.jdbc.initialize-schema=never
1724

1825
spring.graphql.path=/
19-
2026
spring.graphql.graphiql.enabled=true
2127
spring.graphql.graphiql.path=/graphiql
2228
spring.graphql.schema.introspection.enabled=true
@@ -26,20 +32,12 @@ spring.flyway.locations=classpath:db/migration
2632
spring.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.
3035
spring.mvc.cors.allowed-origins=${SPRING_MVC_CORS_ALLOWED_ORIGINS:http://localhost:3000}
3136

32-
# Nome e path do cookie de autentica??o
3337
security.jwt.cookie-name=EG_AUTH
3438
security.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}
4040
security.jwt.same-site-when-same-site=${SAMESITE_WHEN_SAME_SITE:Lax}
41-
42-
# Validade do token/cookie (ms)
4341
security.jwt.expiration-ms=${JWT_EXPIRATION_MS:604800000}
4442

4543
# ===== Email Configuration =====
@@ -60,15 +58,3 @@ management.endpoint.health.show-details=always
6058
management.prometheus.metrics.export.enabled=true
6159
management.metrics.distribution.percentiles-histogram.http.server.requests=true
6260
management.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

Comments
 (0)