diff --git a/modules/account/src/main/resources/application.yml b/modules/account/src/main/resources/application.yml index 7e065f7..927dd1d 100644 --- a/modules/account/src/main/resources/application.yml +++ b/modules/account/src/main/resources/application.yml @@ -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 diff --git a/modules/bot-platform/src/main/resources/application.yml b/modules/bot-platform/src/main/resources/application.yml index bbbc737..8367882 100644 --- a/modules/bot-platform/src/main/resources/application.yml +++ b/modules/bot-platform/src/main/resources/application.yml @@ -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 diff --git a/modules/coordinator/src/main/resources/application.yml b/modules/coordinator/src/main/resources/application.yml index 0593056..e113a3a 100644 --- a/modules/coordinator/src/main/resources/application.yml +++ b/modules/coordinator/src/main/resources/application.yml @@ -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 diff --git a/modules/core/src/main/resources/application.yml b/modules/core/src/main/resources/application.yml index 8b48e51..c71e664 100644 --- a/modules/core/src/main/resources/application.yml +++ b/modules/core/src/main/resources/application.yml @@ -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 diff --git a/modules/io/src/main/resources/application.yml b/modules/io/src/main/resources/application.yml index 9e1ebb2..9903bdb 100644 --- a/modules/io/src/main/resources/application.yml +++ b/modules/io/src/main/resources/application.yml @@ -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} diff --git a/modules/official-bots/src/main/resources/application.yml b/modules/official-bots/src/main/resources/application.yml index b7f65c0..42b63f1 100644 --- a/modules/official-bots/src/main/resources/application.yml +++ b/modules/official-bots/src/main/resources/application.yml @@ -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 diff --git a/modules/rule/src/main/resources/application.yml b/modules/rule/src/main/resources/application.yml index 3a1c077..30f0e73 100644 --- a/modules/rule/src/main/resources/application.yml +++ b/modules/rule/src/main/resources/application.yml @@ -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 diff --git a/modules/store/src/main/resources/application.yml b/modules/store/src/main/resources/application.yml index 08a995a..03f0ac9 100644 --- a/modules/store/src/main/resources/application.yml +++ b/modules/store/src/main/resources/application.yml @@ -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 diff --git a/modules/ws/src/main/resources/application.yml b/modules/ws/src/main/resources/application.yml index d596bd1..5206545 100644 --- a/modules/ws/src/main/resources/application.yml +++ b/modules/ws/src/main/resources/application.yml @@ -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