118 lines
4.9 KiB
Properties
118 lines
4.9 KiB
Properties
# ============================================================================
|
|
# Lions User Manager Client - Configuration Commune
|
|
# ============================================================================
|
|
# Ce fichier contient UNIQUEMENT la configuration commune à tous les environnements
|
|
# Les configurations spécifiques sont dans:
|
|
# - application-dev.properties (développement)
|
|
# - application-prod.properties (production)
|
|
# ============================================================================
|
|
|
|
# ============================================
|
|
# Application Info
|
|
# ============================================
|
|
quarkus.application.name=lions-user-manager-client
|
|
quarkus.application.version=1.0.0
|
|
|
|
# ============================================
|
|
# Configuration HTTP (commune)
|
|
# ============================================
|
|
quarkus.http.host=0.0.0.0
|
|
quarkus.http.root-path=/
|
|
quarkus.http.so-reuse-port=true
|
|
|
|
# Configuration Session HTTP
|
|
quarkus.http.session-timeout=60m
|
|
quarkus.http.session-cookie-same-site=lax
|
|
quarkus.http.session-cookie-http-only=true
|
|
|
|
# ============================================
|
|
# Logging (configuration de base)
|
|
# ============================================
|
|
quarkus.log.console.enable=true
|
|
quarkus.log.console.level=INFO
|
|
quarkus.log.console.format=%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{2.}] (%t) %s%e%n
|
|
quarkus.log.category."dev.lions.user.manager".level=DEBUG
|
|
|
|
# ============================================
|
|
# MyFaces Configuration (commune)
|
|
# ============================================
|
|
quarkus.myfaces.state-saving-method=server
|
|
quarkus.myfaces.number-of-views-in-session=100
|
|
quarkus.myfaces.number-of-sequential-views-in-session=20
|
|
quarkus.myfaces.serialize-state-in-session=false
|
|
quarkus.myfaces.client-view-state-timeout=7200000
|
|
# Redirection vers la page d'accueil publique (HTML statique) en cas de vue expirée
|
|
quarkus.myfaces.view-expired-exception-handler-redirect-page=/index.html?expired=true
|
|
quarkus.myfaces.strict-xhtml-links=false
|
|
quarkus.myfaces.refresh-transient-build-on-pss=true
|
|
quarkus.myfaces.resource-max-time-expires=604800000
|
|
quarkus.myfaces.resource-buffer-size=2048
|
|
quarkus.myfaces.automatic-extensionless-mapping=true
|
|
|
|
# ============================================
|
|
# PrimeFaces Configuration
|
|
# ============================================
|
|
primefaces.THEME=freya
|
|
primefaces.FONT_AWESOME=true
|
|
primefaces.CLIENT_SIDE_VALIDATION=true
|
|
primefaces.MOVE_SCRIPTS_TO_BOTTOM=true
|
|
primefaces.CSP=false
|
|
primefaces.UPLOADER=commons
|
|
primefaces.AUTO_UPDATE=false
|
|
primefaces.CACHE_PROVIDER=org.primefaces.cache.DefaultCacheProvider
|
|
|
|
# ============================================
|
|
# Configuration REST Client (commune)
|
|
# ============================================
|
|
quarkus.rest-client."lions-user-manager-api".scope=jakarta.inject.Singleton
|
|
quarkus.rest-client."lions-user-manager-api".connect-timeout=5000
|
|
quarkus.rest-client."lions-user-manager-api".read-timeout=30000
|
|
quarkus.rest-client."lions-user-manager-api".bearer-token-propagation=true
|
|
|
|
# ============================================
|
|
# Configuration OIDC - Base (commune)
|
|
# ============================================
|
|
quarkus.oidc.enabled=true
|
|
quarkus.oidc.application-type=web-app
|
|
quarkus.oidc.authentication.redirect-path=/auth/callback
|
|
quarkus.oidc.authentication.restore-path-after-redirect=true
|
|
quarkus.oidc.authentication.scopes=openid,profile,email,roles
|
|
quarkus.oidc.authentication.java-script-auto-redirect=false
|
|
quarkus.oidc.discovery-enabled=true
|
|
quarkus.oidc.verify-access-token=true
|
|
quarkus.security.auth.enabled=true
|
|
|
|
# Extraction des rôles depuis le token
|
|
quarkus.oidc.roles.role-claim-path=realm_access/roles
|
|
quarkus.oidc.roles.source=accesstoken
|
|
|
|
# ============================================
|
|
# Chemins publics (non protégés par OIDC)
|
|
# ============================================
|
|
quarkus.http.auth.permission.public.paths=/,/index.html,/index.xhtml,/index,/pages/public/*,/auth/*,/q/*,/q/oidc/*,/favicon.ico,/resources/*,/META-INF/resources/*,/images/*,/jakarta.faces.resource/*,/javax.faces.resource/*
|
|
quarkus.http.auth.permission.public.policy=permit
|
|
|
|
# Chemins protégés (requièrent authentification)
|
|
quarkus.http.auth.permission.authenticated.paths=/pages/user-manager/*
|
|
quarkus.http.auth.permission.authenticated.policy=authenticated
|
|
|
|
# ============================================
|
|
# CORS (configuration de base)
|
|
# ============================================
|
|
quarkus.http.cors=true
|
|
quarkus.http.cors.methods=GET,POST,PUT,DELETE,OPTIONS
|
|
quarkus.http.cors.headers=Accept,Authorization,Content-Type,X-Requested-With
|
|
|
|
# ============================================
|
|
# Health Checks
|
|
# ============================================
|
|
quarkus.smallrye-health.root-path=/health
|
|
quarkus.smallrye-health.liveness-path=/health/live
|
|
quarkus.smallrye-health.readiness-path=/health/ready
|
|
|
|
# ============================================
|
|
# Metrics
|
|
# ============================================
|
|
quarkus.micrometer.export.prometheus.enabled=true
|
|
quarkus.micrometer.export.prometheus.path=/metrics
|