feat(config): update application.yml for PostgreSQL and remove staging/production configurations
This commit is contained in:
@@ -12,17 +12,16 @@ quarkus:
|
|||||||
info-title: NowChess Account Service
|
info-title: NowChess Account Service
|
||||||
path: /openapi
|
path: /openapi
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
always-include: true
|
|
||||||
path: /swagger-ui
|
path: /swagger-ui
|
||||||
datasource:
|
datasource:
|
||||||
db-kind: h2
|
db-kind: postgresql
|
||||||
username: sa
|
username: ${DB_USER:nowchess}
|
||||||
password: ""
|
password: ${DB_PASSWORD:nowchess}
|
||||||
jdbc:
|
jdbc:
|
||||||
url: jdbc:h2:mem:nowchess;DB_CLOSE_DELAY=-1
|
url: ${DB_URL:jdbc:postgresql://localhost:5432/nowchess}
|
||||||
hibernate-orm:
|
hibernate-orm:
|
||||||
schema-management:
|
schema-management:
|
||||||
strategy: drop-and-create
|
strategy: update
|
||||||
|
|
||||||
nowchess:
|
nowchess:
|
||||||
redis:
|
redis:
|
||||||
@@ -32,6 +31,18 @@ nowchess:
|
|||||||
internal:
|
internal:
|
||||||
secret: 123abc
|
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":
|
"%deployed":
|
||||||
quarkus:
|
quarkus:
|
||||||
rest-client:
|
rest-client:
|
||||||
@@ -43,6 +54,9 @@ nowchess:
|
|||||||
password: ${DB_PASSWORD}
|
password: ${DB_PASSWORD}
|
||||||
jdbc:
|
jdbc:
|
||||||
url: ${DB_URL}
|
url: ${DB_URL}
|
||||||
|
hibernate-orm:
|
||||||
|
schema-management:
|
||||||
|
strategy: update
|
||||||
nowchess:
|
nowchess:
|
||||||
redis:
|
redis:
|
||||||
host: ${REDIS_HOST:localhost}
|
host: ${REDIS_HOST:localhost}
|
||||||
@@ -50,9 +64,6 @@ nowchess:
|
|||||||
prefix: ${REDIS_PREFIX:nowchess}
|
prefix: ${REDIS_PREFIX:nowchess}
|
||||||
internal:
|
internal:
|
||||||
secret: ${INTERNAL_SECRET}
|
secret: ${INTERNAL_SECRET}
|
||||||
hibernate-orm:
|
|
||||||
schema-management:
|
|
||||||
strategy: update
|
|
||||||
mp:
|
mp:
|
||||||
jwt:
|
jwt:
|
||||||
verify:
|
verify:
|
||||||
@@ -64,16 +75,3 @@ nowchess:
|
|||||||
sign:
|
sign:
|
||||||
key:
|
key:
|
||||||
location: ${JWT_PRIVATE_KEY_PATH:keys/private.pem}
|
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}
|
host: ${REDIS_HOST:localhost}
|
||||||
port: ${REDIS_PORT:6379}
|
port: ${REDIS_PORT:6379}
|
||||||
prefix: ${REDIS_PREFIX:nowchess}
|
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
|
info-description: Coordination endpoints for instance health, balancing, failover, and scaling
|
||||||
path: /openapi
|
path: /openapi
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
always-include: true
|
|
||||||
path: /swagger-ui
|
path: /swagger-ui
|
||||||
|
|
||||||
nowchess:
|
nowchess:
|
||||||
@@ -51,17 +50,3 @@ nowchess:
|
|||||||
quarkus:
|
quarkus:
|
||||||
log:
|
log:
|
||||||
level: DEBUG
|
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
|
stream-heartbeat-interval: 200ms
|
||||||
redis-heartbeat-interval: 2s
|
redis-heartbeat-interval: 2s
|
||||||
instance-id: ${HOSTNAME:local}-${quarkus.uuid}
|
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
|
|
||||||
|
|||||||
@@ -6,29 +6,14 @@ quarkus:
|
|||||||
use-separate-server: false
|
use-separate-server: false
|
||||||
application:
|
application:
|
||||||
name: nowchess-io
|
name: nowchess-io
|
||||||
|
|
||||||
nowchess:
|
|
||||||
internal:
|
|
||||||
secret: ${INTERNAL_SECRET:123abc}
|
|
||||||
smallrye-openapi:
|
smallrye-openapi:
|
||||||
info-title: NowChess IO Service
|
info-title: NowChess IO Service
|
||||||
info-version: 1.0.0
|
info-version: 1.0.0
|
||||||
info-description: Chess notation import and export — FEN and PGN
|
info-description: Chess notation import and export — FEN and PGN
|
||||||
path: /openapi
|
path: /openapi
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
always-include: true
|
|
||||||
path: /swagger-ui
|
path: /swagger-ui
|
||||||
|
|
||||||
"%staging":
|
nowchess:
|
||||||
quarkus:
|
internal:
|
||||||
swagger-ui:
|
secret: ${INTERNAL_SECRET:123abc}
|
||||||
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}
|
host: ${REDIS_HOST:localhost}
|
||||||
port: ${REDIS_PORT:6379}
|
port: ${REDIS_PORT:6379}
|
||||||
prefix: ${REDIS_PREFIX:nowchess}
|
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:
|
nowchess:
|
||||||
internal:
|
internal:
|
||||||
secret: ${INTERNAL_SECRET:123abc}
|
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
|
port: 6379
|
||||||
prefix: test-store
|
prefix: test-store
|
||||||
|
|
||||||
"%staging":
|
"%dev":
|
||||||
quarkus:
|
quarkus:
|
||||||
swagger-ui:
|
datasource:
|
||||||
always-include: true
|
db-kind: h2
|
||||||
dev-ui:
|
username: sa
|
||||||
always-include: true
|
password: ""
|
||||||
log:
|
jdbc:
|
||||||
level: INFO
|
url: jdbc:h2:mem:nowchess;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
|
||||||
|
hibernate-orm:
|
||||||
"%production":
|
database:
|
||||||
quarkus:
|
generation: drop-and-create
|
||||||
log:
|
nowchess:
|
||||||
level: WARN
|
redis:
|
||||||
|
host: localhost
|
||||||
|
port: 6379
|
||||||
|
prefix: dev-store
|
||||||
|
|||||||
@@ -39,17 +39,3 @@ nowchess:
|
|||||||
publickey:
|
publickey:
|
||||||
location: ${JWT_PUBLIC_KEY_PATH:keys/public.pem}
|
location: ${JWT_PUBLIC_KEY_PATH:keys/public.pem}
|
||||||
issuer: nowchess
|
issuer: nowchess
|
||||||
|
|
||||||
"%staging":
|
|
||||||
quarkus:
|
|
||||||
swagger-ui:
|
|
||||||
always-include: true
|
|
||||||
dev-ui:
|
|
||||||
always-include: true
|
|
||||||
log:
|
|
||||||
level: INFO
|
|
||||||
|
|
||||||
"%production":
|
|
||||||
quarkus:
|
|
||||||
log:
|
|
||||||
level: WARN
|
|
||||||
|
|||||||
Reference in New Issue
Block a user