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
@@ -22,17 +22,3 @@ nowchess:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
prefix: ${REDIS_PREFIX:nowchess}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -17,7 +17,6 @@ quarkus:
info-description: Coordination endpoints for instance health, balancing, failover, and scaling
path: /openapi
swagger-ui:
always-include: true
path: /swagger-ui
nowchess:
@@ -51,17 +50,3 @@ nowchess:
quarkus:
log:
level: DEBUG
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -110,17 +110,3 @@ nowchess:
stream-heartbeat-interval: 200ms
redis-heartbeat-interval: 2s
instance-id: ${HOSTNAME:local}-${quarkus.uuid}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
+3 -18
View File
@@ -6,29 +6,14 @@ quarkus:
use-separate-server: false
application:
name: nowchess-io
nowchess:
internal:
secret: ${INTERNAL_SECRET:123abc}
smallrye-openapi:
info-title: NowChess IO Service
info-version: 1.0.0
info-description: Chess notation import and export — FEN and PGN
path: /openapi
swagger-ui:
always-include: true
path: /swagger-ui
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
nowchess:
internal:
secret: ${INTERNAL_SECRET:123abc}
@@ -22,17 +22,3 @@ nowchess:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
prefix: ${REDIS_PREFIX:nowchess}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -10,17 +10,3 @@ quarkus:
nowchess:
internal:
secret: ${INTERNAL_SECRET:123abc}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -42,16 +42,19 @@ nowchess:
port: 6379
prefix: test-store
"%staging":
"%dev":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
datasource:
db-kind: h2
username: sa
password: ""
jdbc:
url: jdbc:h2:mem:nowchess;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
hibernate-orm:
database:
generation: drop-and-create
nowchess:
redis:
host: localhost
port: 6379
prefix: dev-store
@@ -39,17 +39,3 @@ nowchess:
publickey:
location: ${JWT_PUBLIC_KEY_PATH:keys/public.pem}
issuer: nowchess
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN