137 lines
2.7 KiB
YAML
137 lines
2.7 KiB
YAML
# Configuration UnionFlow Server
|
|
quarkus:
|
|
application:
|
|
name: unionflow-server
|
|
version: 1.0.0
|
|
|
|
# Configuration HTTP
|
|
http:
|
|
port: 8080
|
|
host: 0.0.0.0
|
|
cors:
|
|
~: true
|
|
origins: "*"
|
|
methods: "GET,POST,PUT,DELETE,OPTIONS"
|
|
headers: "Content-Type,Authorization"
|
|
|
|
# Configuration Base de données PostgreSQL
|
|
datasource:
|
|
db-kind: postgresql
|
|
username: ${DB_USERNAME:unionflow}
|
|
password: ${DB_PASSWORD:unionflow123}
|
|
jdbc:
|
|
url: ${DB_URL:jdbc:postgresql://localhost:5432/unionflow}
|
|
min-size: 2
|
|
max-size: 10
|
|
|
|
# Configuration Hibernate
|
|
hibernate-orm:
|
|
database:
|
|
generation: update
|
|
log:
|
|
sql: false
|
|
jdbc:
|
|
timezone: UTC
|
|
packages: dev.lions.unionflow.server.entity
|
|
|
|
# Configuration Flyway pour migrations
|
|
flyway:
|
|
migrate-at-start: true
|
|
baseline-on-migrate: true
|
|
baseline-version: 1.0.0
|
|
|
|
# Configuration Sécurité JWT
|
|
smallrye-jwt:
|
|
enabled: true
|
|
|
|
# Configuration OpenAPI
|
|
smallrye-openapi:
|
|
info-title: UnionFlow Server API
|
|
info-version: 1.0.0
|
|
info-description: API REST pour la gestion d'union
|
|
servers: http://localhost:8080
|
|
|
|
# Configuration santé
|
|
smallrye-health:
|
|
root-path: /health
|
|
|
|
# Configuration JWT
|
|
mp:
|
|
jwt:
|
|
verify:
|
|
issuer: unionflow-api
|
|
publickey:
|
|
algorithm: RS256
|
|
|
|
# Configuration logging
|
|
quarkus:
|
|
log:
|
|
console:
|
|
enable: true
|
|
level: INFO
|
|
format: "%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{2.}] (%t) %s%e%n"
|
|
category:
|
|
"dev.lions.unionflow":
|
|
level: INFO
|
|
"org.hibernate":
|
|
level: WARN
|
|
"io.quarkus":
|
|
level: INFO
|
|
|
|
---
|
|
# Profil de développement
|
|
"%dev":
|
|
quarkus:
|
|
datasource:
|
|
db-kind: h2
|
|
username: sa
|
|
password: ""
|
|
jdbc:
|
|
url: jdbc:h2:mem:unionflow_dev;DB_CLOSE_DELAY=-1;MODE=PostgreSQL
|
|
hibernate-orm:
|
|
database:
|
|
generation: drop-and-create
|
|
log:
|
|
sql: true
|
|
flyway:
|
|
migrate-at-start: false
|
|
log:
|
|
category:
|
|
"dev.lions.unionflow":
|
|
level: DEBUG
|
|
"org.hibernate.SQL":
|
|
level: DEBUG
|
|
|
|
---
|
|
# Profil de test
|
|
"%test":
|
|
quarkus:
|
|
datasource:
|
|
db-kind: h2
|
|
username: sa
|
|
password: ""
|
|
jdbc:
|
|
url: jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
|
|
hibernate-orm:
|
|
database:
|
|
generation: drop-and-create
|
|
flyway:
|
|
migrate-at-start: false
|
|
|
|
---
|
|
# Profil de production
|
|
"%prod":
|
|
quarkus:
|
|
hibernate-orm:
|
|
database:
|
|
generation: validate
|
|
log:
|
|
sql: false
|
|
log:
|
|
console:
|
|
level: WARN
|
|
category:
|
|
"dev.lions.unionflow":
|
|
level: INFO
|
|
root:
|
|
level: WARN |