GitRead / .env.example
toasted1920's picture
Claude Opus 5.5
Add bring-your-own-key LLMs, ONNX code embeddings and security hardening
5e9ddc1
Raw History Blame Contribute Delete
898 Bytes
# Copy to back_end/.env (or .env) for local development. Never commit the real file.
# On Hugging Face, set these under Space → Settings → Variables and secrets.
# Only used if ALLOW_SERVER_KEY_FALLBACK=true (users who don't paste a key use yours).
GOOGLE_API_KEY=
ALLOW_SERVER_KEY_FALLBACK=false
# Extra origins allowed to call the API (comma-separated). Empty = same-origin only.
ALLOWED_ORIGINS=
# Limits
MAX_LOADED_REPOS=20
SESSION_IDLE_TTL_SECONDS=1800
RATE_LIMIT_INIT_PER_MIN=3
RATE_LIMIT_CHAT_PER_MIN=12
# 0 = auto-detect client IP behind the proxy; set to the exact proxy count if known
TRUSTED_PROXY_HOPS=0
# Fall back to keyword search if embedding would take longer than this (seconds)
EMBEDDING_TIME_BUDGET_SECONDS=600
MAX_CHUNKS_TO_EMBED=4000
# Embeddings: auto (CUDA if onnxruntime-gpu is installed) | cpu
EMBEDDING_DEVICE=auto
# Local development only
ENABLE_API_DOCS=false