fix: ajouter application-production.properties et corriger config WebSockets Next
This commit is contained in:
81
src/main/resources/application-production.properties
Normal file
81
src/main/resources/application-production.properties
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
# ====================================================================
|
||||||
|
# AfterWork Server - Configuration PRODUCTION
|
||||||
|
# ====================================================================
|
||||||
|
# Ce fichier est automatiquement chargé avec: java -jar app.jar
|
||||||
|
# Les configurations ici surchargent celles de application.properties
|
||||||
|
#
|
||||||
|
# NOTE: Ce fichier est utilisé quand le profil est "production"
|
||||||
|
# Pour le profil "prod", voir application-prod.properties
|
||||||
|
|
||||||
|
# ====================================================================
|
||||||
|
# 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
|
||||||
|
# ====================================================================
|
||||||
|
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}
|
||||||
|
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 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 (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
|
||||||
|
quarkus.http.cors.headers=accept,authorization,content-type,x-requested-with
|
||||||
|
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
|
||||||
|
quarkus.log.console.json=false
|
||||||
|
quarkus.log.category."com.lions.dev".level=INFO
|
||||||
|
quarkus.log.category."org.hibernate".level=WARN
|
||||||
|
quarkus.log.category."io.quarkus".level=INFO
|
||||||
|
|
||||||
|
# ====================================================================
|
||||||
|
# WebSocket
|
||||||
|
# ====================================================================
|
||||||
|
quarkus.websocket.max-frame-size=65536
|
||||||
|
|
||||||
|
# ====================================================================
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# ====================================================================
|
||||||
|
# Localisation
|
||||||
|
# ====================================================================
|
||||||
|
quarkus.locales=fr-FR,en-US
|
||||||
|
quarkus.default-locale=fr-FR
|
||||||
@@ -28,7 +28,9 @@ quarkus.http.limits.max-body-size=10M
|
|||||||
# ====================================================================
|
# ====================================================================
|
||||||
# WebSockets Next (commun à tous les environnements)
|
# WebSockets Next (commun à tous les environnements)
|
||||||
# ====================================================================
|
# ====================================================================
|
||||||
quarkus.websockets-next.server.enabled=true
|
# Note: WebSockets Next est activé par défaut si la dépendance est présente
|
||||||
|
# La propriété quarkus.websockets-next.server.enabled n'existe pas dans Quarkus 3.16
|
||||||
|
# WebSockets Next est automatiquement activé quand quarkus-websockets-next est dans les dépendances
|
||||||
|
|
||||||
# ====================================================================
|
# ====================================================================
|
||||||
# Kafka Configuration (commun à tous les environnements)
|
# Kafka Configuration (commun à tous les environnements)
|
||||||
|
|||||||
Reference in New Issue
Block a user