From e4bb5cd0fd33e5db9f14c0a2dc4f2607dcb15c5b Mon Sep 17 00:00:00 2001 From: oabrivard Date: Mon, 9 Feb 2026 11:49:54 +0100 Subject: [PATCH] Added example .env file --- infrastructure/dev/.env.example | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 infrastructure/dev/.env.example diff --git a/infrastructure/dev/.env.example b/infrastructure/dev/.env.example new file mode 100644 index 0000000..3b76bc7 --- /dev/null +++ b/infrastructure/dev/.env.example @@ -0,0 +1,57 @@ +# Database +POSTGRES_USER=knowfoolery +POSTGRES_PASSWORD=change-me +POSTGRES_HOST=localhost +POSTGRES_PORT=5432 +POSTGRES_DB=knowfoolery + +# Redis +REDIS_HOST=localhost +REDIS_PORT=6379 + +# Zitadel (when auth profile is enabled) +ZITADEL_URL=http://localhost:8080 +ZITADEL_PROJECT_ID=your-project-id +ZITADEL_CLIENT_ID=your-client-id +ZITADEL_PORT=8084 +ZITADEL_MASTERKEY=replace-with-32-char-masterkey +ZITADEL_ORG_NAME=knowfoolery +ZITADEL_ADMIN_USERNAME=admin +ZITADEL_ADMIN_PASSWORD=change-me + +# CockroachDB (for Zitadel) +CRDB_PORT=26257 +CRDB_HTTP_PORT=9090 + +# Environment +ENVIRONMENT=development +LOG_LEVEL=debug + +# Service Ports +GAME_SESSION_PORT=8080 +QUESTION_BANK_PORT=8081 +USER_SERVICE_PORT=8082 +LEADERBOARD_PORT=8083 +ADMIN_SERVICE_PORT=8085 +GATEWAY_PORT=8086 +GATEWAY_INTERNAL_PORT=18086 + +# Gateway +GATEWAY_PUBLIC_PREFIX=/api/v1 +GATEWAY_ALLOWED_ORIGINS=http://localhost:5173 +GATEWAY_RATE_WINDOW=1m +GATEWAY_RATE_GENERAL=100 +GATEWAY_RATE_AUTH=5 +GATEWAY_RATE_API=60 +GATEWAY_RATE_ADMIN=30 + +# Observability ports (when observability profile is enabled) +PROMETHEUS_PORT=9091 +GRAFANA_PORT=3000 +JAEGER_UI_PORT=16686 +JAEGER_COLLECTOR_PORT=14268 +JAEGER_AGENT_PORT=6831 + +# Grafana (when observability profile is enabled) +GRAFANA_ADMIN_USER=admin +GRAFANA_ADMIN_PASSWORD=change-me