# GBCM Client Configuration
quarkus.application.name=gbcm-client
quarkus.application.version=1.0.0-SNAPSHOT

# Server Configuration
quarkus.http.port=8081
quarkus.http.host=0.0.0.0

# JSF Configuration
quarkus.servlet.context-path=/gbcm

# Security Configuration
quarkus.security.auth.enabled=true

# Keycloak OIDC Configuration
quarkus.oidc.auth-server-url=http://localhost:8180/realms/gbcm-llc
quarkus.oidc.client-id=gbcm-web-client
quarkus.oidc.credentials.secret=gbcm-web-secret
quarkus.oidc.tls.verification=none
quarkus.oidc.application-type=web-app
quarkus.oidc.authentication.redirect-path=/gbcm/login
quarkus.oidc.authentication.restore-path-after-redirect=true

# REST Client Configuration - GBCM Server API
gbcm.server.api.url=http://localhost:8082/api
quarkus.rest-client."com.gbcm.client.service.GBCMServerClient".url=${gbcm.server.api.url}

# Database Configuration (for session storage)
quarkus.datasource.db-kind=postgresql
quarkus.datasource.username=gbcm_user
quarkus.datasource.password=gbcm_password
quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/gbcm_client

# Hibernate Configuration
quarkus.hibernate-orm.database.generation=update
quarkus.hibernate-orm.log.sql=false

# Logging Configuration
quarkus.log.level=INFO
quarkus.log.category."com.gbcm".level=DEBUG

# Development Configuration
%dev.quarkus.log.level=DEBUG
%dev.quarkus.hibernate-orm.log.sql=true
%dev.quarkus.datasource.jdbc.url=jdbc:h2:mem:gbcm_client_dev;DB_CLOSE_DELAY=-1
%dev.quarkus.datasource.db-kind=h2

# Production Configuration
%prod.quarkus.log.level=WARN
%prod.quarkus.datasource.jdbc.url=${DATABASE_URL}

# PrimeFaces Configuration
primefaces.theme=freya
primefaces.font-awesome=true
primefaces.client-side-validation=true
primefaces.move-scripts-to-bottom=true
