# Settings come from environment variables with the Node backend's names; see README.md. # HTTP and WebSocket quarkus.http.port=${PORT:5005} quarkus.http.test-port=0 quarkus.http.cors.enabled=true quarkus.http.cors.origins=* quarkus.http.access-log.enabled=true quarkus.http.access-log.pattern=common quarkus.http.access-log.log-to-file=true quarkus.http.access-log.base-file-name=access quarkus.http.access-log.log-directory=. quarkus.http.access-log.rotate=false %test.quarkus.http.access-log.enabled=false # Keycloak mancala.auth.issuer=${KEYCLOAK_ISSUER:http://localhost:8080/realms/mancala} # Empty: the issuer's certs endpoint. mancala.auth.jwks-url=${KEYCLOAK_JWKS_URL:} mancala.auth.client-ids=${KEYCLOAK_CLIENT_IDS:mancala-web} mancala.auth.legacy-userkey-auth=${LEGACY_USERKEY_AUTH:true} # Time each player has for a whole game (docs/specs/game-clock). mancala.game-clock-ms=${GAME_CLOCK_MS:300000} # Postgres. Tests start one with Dev Services. The backend starts without it; migrations are retried. quarkus.datasource.db-kind=postgresql %dev,prod.quarkus.datasource.jdbc.url=${DATABASE_JDBC_URL:jdbc:postgresql://localhost:5433/mancala} %dev,prod.quarkus.datasource.username=${DATABASE_USERNAME:mancala} %dev,prod.quarkus.datasource.password=${DATABASE_PASSWORD:mancala} quarkus.datasource.jdbc.max-size=5 quarkus.datasource.jdbc.acquisition-timeout=5S quarkus.datasource.devservices.image-name=postgres:17.6 # Valkey. Tests start one with Dev Services. Short timeouts, so callers fall back quickly while it is down. %dev,prod.quarkus.redis.hosts=${VALKEY_URL:redis://localhost:6379} quarkus.redis.timeout=2S quarkus.redis.tcp.connect-timeout=1S quarkus.redis.devservices.image-name=valkey/valkey:9.1.2 # Nothing listens on port 1; for the tests of an unreachable Valkey. %test.quarkus.redis.offline.hosts=redis://127.0.0.1:1