@@ -15,17 +15,20 @@ COOKIE_SECURE=false # Set to true in production with HTTPS
1515# Extra origins allowed for CSRF/CORS (comma-separated). localhost:5173 and
1616# localhost:3000 are always allowed. Set your public URL here in prod.
1717ALLOWED_ORIGINS =
18-
19- # ── Frontend ──
20- VITE_API_URL = http://localhost:8000
18+ # Trust X-Forwarded-For from a reverse proxy when computing rate-limit keys.
19+ # The shipped docker-compose runs nginx in front of the backend and sets this
20+ # to true via the compose env block; only enable here if you put a different
21+ # trusted proxy in front. Leaving this off behind a proxy collapses every
22+ # client to the proxy's IP.
23+ TRUST_PROXY = false
2124
2225# ── AI Chat (optional) ──
2326# Defaults target Gemini. Get an API key at https://aistudio.google.com/apikey
2427# Any OpenAI-compatible provider works — just change AI_BASE_URL + AI_MODEL.
2528AI_ENABLED = false
2629AI_BASE_URL = https://generativelanguage.googleapis.com/v1beta/openai
2730AI_API_KEY =
28- AI_MODEL = gemini-2.5 -flash
31+ AI_MODEL = gemini-2.0 -flash
2932AI_MAX_CONTEXT_PAGES = 5
3033AI_EXCERPT_CHARS = 1500
3134AI_RATE_LIMIT_PER_HOUR = 20
@@ -37,7 +40,8 @@ AI_RATE_LIMIT_PER_HOUR=20
3740
3841# ── OIDC / OAuth SSO (optional) ──
3942# Public URL the browser can reach — used to build OIDC redirect_uri.
40- # Dev with Vite proxy: http://localhost:5173 Prod: https://wiki.example.com
43+ # Dev with Vite proxy: http://localhost:5173 Docker: http://localhost:3000
44+ # (compose overrides this automatically) Prod: https://wiki.example.com
4145PUBLIC_BASE_URL = http://localhost:8000
4246
4347OIDC_ENABLED = false
@@ -90,6 +94,3 @@ LDAP_SYNC_GROUPS=false
9094LDAP_GROUP_BASE = ou=groups,dc=example,dc=com
9195LDAP_GROUP_FILTER = (&(objectClass=groupOfNames)(member={user_dn}))
9296LDAP_ADMIN_GROUPS = wiki-admins
93-
94- # ── Webhook (Phase 7, 可選) ──
95- WEBHOOK_URLS =
0 commit comments