Files
KnockOutWhist-Web/knockoutwhistweb/conf/prod.conf
2026-01-18 22:16:51 +01:00

62 lines
1.8 KiB
Plaintext

include "application.conf"
play.http.secret.key="zg8^v0R*:7-m.>^8T2B1q)sE3MV_9=M{K9zx8,<3}"
play.http.context="/api"
play.modules.enabled += "modules.GatewayModule"
play.filters.cors {
allowedOrigins = ["http://localhost:5173"]
allowedCredentials = true
allowedHttpMethods = ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allowedHttpHeaders = ["Accept", "Content-Type", "Origin", "X-Requested-With"]
}
# Database configuration - PostgreSQL with environment variables
db.default.driver=org.postgresql.Driver
db.default.url=${?DATABASE_URL}
db.default.url="jdbc:postgresql://localhost:5432/knockoutwhist"
db.default.username=${?DB_USER}
db.default.username="postgres"
db.default.password=${?DB_PASSWORD}
db.default.password=""
# JPA/Hibernate configuration
jpa.default=defaultPersistenceUnit
# Hibernate specific settings
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.hbm2ddl.auto=update
hibernate.show_sql=false
hibernate.format_sql=true
hibernate.use_sql_comments=true
# Connection pool settings
db.default.hikaricp.maximumPoolSize=20
db.default.hikaricp.minimumIdle=5
db.default.hikaricp.connectionTimeout=30000
db.default.hikaricp.idleTimeout=600000
db.default.hikaricp.maxLifetime=1800000
# PostgreSQL specific settings
db.default.hikaricp.connectionTestQuery="SELECT 1"
db.default.hikaricp.poolName="KnockOutWhistPool"
# OpenID Connect Configuration
openid {
discord {
clientId = ${?DISCORD_CLIENT_ID}
clientSecret = ${?DISCORD_CLIENT_SECRET}
redirectUri = ${?DISCORD_REDIRECT_URI}
redirectUri = "http://localhost:9000/auth/discord/callback"
}
keycloak {
clientId = "your-keycloak-client-id"
clientSecret = "your-keycloak-client-secret"
redirectUri = "https://knockout.janis-eccarius.de/api/auth/keycloak/callback"
authUrl = ${?KEYCLOAK_AUTH_URL}
authUrl = "http://localhost:8080/realms/master"
}
}