# Configuration UnionFlow Server - Mode Minimal
quarkus.application.name=unionflow-server-minimal
quarkus.application.version=1.0.0

# Configuration HTTP
quarkus.http.port=8080
quarkus.http.host=0.0.0.0

# Configuration CORS
quarkus.http.cors=true
quarkus.http.cors.origins=*
quarkus.http.cors.methods=GET,POST,PUT,DELETE,OPTIONS
quarkus.http.cors.headers=Content-Type,Authorization

# Configuration Base de données H2 (en mémoire)
quarkus.datasource.db-kind=h2
quarkus.datasource.username=sa
quarkus.datasource.password=
quarkus.datasource.jdbc.url=jdbc:h2:mem:unionflow_minimal;DB_CLOSE_DELAY=-1;MODE=PostgreSQL

# Configuration Hibernate
quarkus.hibernate-orm.database.generation=drop-and-create
quarkus.hibernate-orm.log.sql=true
quarkus.hibernate-orm.jdbc.timezone=UTC
quarkus.hibernate-orm.packages=dev.lions.unionflow.server.entity

# Désactiver Flyway
quarkus.flyway.migrate-at-start=false

# Désactiver Keycloak temporairement
quarkus.oidc.tenant-enabled=false

# Chemins publics (tous publics en mode minimal)
quarkus.http.auth.permission.public.paths=/*
quarkus.http.auth.permission.public.policy=permit

# Configuration OpenAPI
quarkus.smallrye-openapi.info-title=UnionFlow Server API - Minimal
quarkus.smallrye-openapi.info-version=1.0.0
quarkus.smallrye-openapi.info-description=API REST pour la gestion d'union (mode minimal)
quarkus.smallrye-openapi.servers=http://localhost:8080

# Configuration Swagger UI
quarkus.swagger-ui.always-include=true
quarkus.swagger-ui.path=/swagger-ui

# Configuration santé
quarkus.smallrye-health.root-path=/health

# Configuration logging
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.unionflow".level=DEBUG
quarkus.log.category."org.hibernate".level=WARN
quarkus.log.category."io.quarkus".level=INFO
