feat(config): update application.yml for PostgreSQL and remove staging/production configurations

This commit is contained in:
2026-04-30 16:14:10 +02:00
parent 6a143a462a
commit 2404e6164c
9 changed files with 38 additions and 137 deletions
@@ -12,17 +12,16 @@ quarkus:
info-title: NowChess Account Service
path: /openapi
swagger-ui:
always-include: true
path: /swagger-ui
datasource:
db-kind: h2
username: sa
password: ""
db-kind: postgresql
username: ${DB_USER:nowchess}
password: ${DB_PASSWORD:nowchess}
jdbc:
url: jdbc:h2:mem:nowchess;DB_CLOSE_DELAY=-1
url: ${DB_URL:jdbc:postgresql://localhost:5432/nowchess}
hibernate-orm:
schema-management:
strategy: drop-and-create
strategy: update
nowchess:
redis:
@@ -32,6 +31,18 @@ nowchess:
internal:
secret: 123abc
"%dev":
quarkus:
datasource:
db-kind: h2
username: sa
password: ""
jdbc:
url: jdbc:h2:mem:nowchess;DB_CLOSE_DELAY=-1
hibernate-orm:
schema-management:
strategy: drop-and-create
"%deployed":
quarkus:
rest-client:
@@ -43,6 +54,9 @@ nowchess:
password: ${DB_PASSWORD}
jdbc:
url: ${DB_URL}
hibernate-orm:
schema-management:
strategy: update
nowchess:
redis:
host: ${REDIS_HOST:localhost}
@@ -50,9 +64,6 @@ nowchess:
prefix: ${REDIS_PREFIX:nowchess}
internal:
secret: ${INTERNAL_SECRET}
hibernate-orm:
schema-management:
strategy: update
mp:
jwt:
verify:
@@ -64,16 +75,3 @@ nowchess:
sign:
key:
location: ${JWT_PRIVATE_KEY_PATH:keys/private.pem}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN