config: Configuration des environnements et migrations DB - Séparation des configurations dev et prod - Configuration H2 pour développement - Configuration PostgreSQL pour production - Migration SQL pour les nouveaux champs d'événements (V2__Add_Event_Additional_Fields.sql) - Configuration CORS et root-path pour production
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
# ====================================================================
|
||||
# AfterWork Server - Configuration de Production
|
||||
# AfterWork Server - Configuration PRODUCTION
|
||||
# ====================================================================
|
||||
# IMPORTANT: Les propriétés build-time (app.name, root-path, compression)
|
||||
# sont définies dans application.properties et ne peuvent pas être changées ici
|
||||
# Ce fichier est automatiquement chargé avec: java -jar app.jar
|
||||
# Les configurations ici surchargent celles de application.properties
|
||||
|
||||
# HTTP Configuration (runtime only)
|
||||
quarkus.http.host=0.0.0.0
|
||||
quarkus.http.port=8080
|
||||
# ====================================================================
|
||||
# HTTP - Chemin de base de l'API
|
||||
# ====================================================================
|
||||
# Permet d'accéder à l'API via https://api.lions.dev/afterwork
|
||||
quarkus.http.root-path=/afterwork
|
||||
|
||||
# Base de données PostgreSQL (Production)
|
||||
# ====================================================================
|
||||
# Base de données PostgreSQL
|
||||
# ====================================================================
|
||||
quarkus.datasource.db-kind=postgresql
|
||||
quarkus.datasource.jdbc.url=jdbc:postgresql://${DB_HOST:postgresql}:${DB_PORT:5432}/${DB_NAME:mic-after-work-server-impl-quarkus-main}
|
||||
quarkus.datasource.username=${DB_USERNAME:lionsuser}
|
||||
@@ -16,14 +20,19 @@ quarkus.datasource.password=${DB_PASSWORD:LionsUser2025!}
|
||||
quarkus.datasource.jdbc.driver=org.postgresql.Driver
|
||||
quarkus.datasource.jdbc.max-size=20
|
||||
quarkus.datasource.jdbc.min-size=5
|
||||
quarkus.datasource.devservices.enabled=false
|
||||
|
||||
# Hibernate
|
||||
# ====================================================================
|
||||
# Hibernate ORM
|
||||
# ====================================================================
|
||||
quarkus.hibernate-orm.database.generation=update
|
||||
quarkus.hibernate-orm.log.sql=false
|
||||
quarkus.hibernate-orm.sql-load-script=no-file
|
||||
quarkus.hibernate-orm.jdbc.statement-batch-size=20
|
||||
|
||||
# CORS - Production strict
|
||||
# ====================================================================
|
||||
# CORS (Cross-Origin Resource Sharing)
|
||||
# ====================================================================
|
||||
quarkus.http.cors=true
|
||||
quarkus.http.cors.origins=https://afterwork.lions.dev
|
||||
quarkus.http.cors.methods=GET,POST,PUT,DELETE,OPTIONS,PATCH
|
||||
@@ -32,7 +41,9 @@ quarkus.http.cors.exposed-headers=content-disposition
|
||||
quarkus.http.cors.access-control-max-age=24H
|
||||
quarkus.http.cors.access-control-allow-credentials=true
|
||||
|
||||
# ====================================================================
|
||||
# Logging
|
||||
# ====================================================================
|
||||
quarkus.log.level=INFO
|
||||
quarkus.log.console.enable=true
|
||||
quarkus.log.console.format=%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] (%t) %s%e%n
|
||||
@@ -41,30 +52,27 @@ quarkus.log.category."com.lions.dev".level=INFO
|
||||
quarkus.log.category."org.hibernate".level=WARN
|
||||
quarkus.log.category."io.quarkus".level=INFO
|
||||
|
||||
# OpenAPI/Swagger - Configuration build-time dans application.properties
|
||||
|
||||
# Health checks - Utilise les valeurs par défaut de Quarkus
|
||||
|
||||
# Métriques - Configuration build-time dans application.properties
|
||||
|
||||
# ====================================================================
|
||||
# WebSocket
|
||||
# ====================================================================
|
||||
quarkus.websocket.max-frame-size=65536
|
||||
|
||||
# Upload de fichiers
|
||||
quarkus.http.body.uploads-directory=/tmp/uploads
|
||||
|
||||
# Compression HTTP - Configuration build-time dans application.properties
|
||||
|
||||
# ====================================================================
|
||||
# SSL/TLS (géré par le reverse proxy)
|
||||
# ====================================================================
|
||||
quarkus.http.ssl.certificate.files=
|
||||
quarkus.http.ssl.certificate.key-files=
|
||||
quarkus.http.insecure-requests=enabled
|
||||
|
||||
# ====================================================================
|
||||
# Performance
|
||||
# ====================================================================
|
||||
quarkus.thread-pool.core-threads=2
|
||||
quarkus.thread-pool.max-threads=16
|
||||
quarkus.thread-pool.queue-size=100
|
||||
|
||||
# Timezone
|
||||
# ====================================================================
|
||||
# Localisation
|
||||
# ====================================================================
|
||||
quarkus.locales=fr-FR,en-US
|
||||
quarkus.default-locale=fr-FR
|
||||
|
||||
Reference in New Issue
Block a user