first commit
This commit is contained in:
127
unionflow-server-impl-quarkus/src/main/resources/application.yml
Normal file
127
unionflow-server-impl-quarkus/src/main/resources/application.yml
Normal file
@@ -0,0 +1,127 @@
|
||||
# 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": INFO
|
||||
"org.hibernate": WARN
|
||||
"io.quarkus": INFO
|
||||
|
||||
---
|
||||
# Profil de développement
|
||||
"%dev":
|
||||
quarkus:
|
||||
datasource:
|
||||
username: unionflow_dev
|
||||
password: dev123
|
||||
jdbc:
|
||||
url: jdbc:postgresql://localhost:5432/unionflow_dev
|
||||
hibernate-orm:
|
||||
database:
|
||||
generation: drop-and-create
|
||||
log:
|
||||
sql: true
|
||||
log:
|
||||
category:
|
||||
"dev.lions.unionflow": DEBUG
|
||||
"org.hibernate.SQL": 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": INFO
|
||||
root: WARN
|
||||
Reference in New Issue
Block a user