SPB Git forge

spb/polyllm

Public
15commits 1branches 0releases
2.2 MBsize
maindefault branch
13 days agolast push
TypeScript 97.4% SQL 1% JavaScript 0.9% CSS 0.6%
1.8 KB · 48 lines dotenv
Raw Blame History
1# --- Runtime -------------------------------------------------------------2NODE_ENV=production3PORT=30004# Public origin used in emails, auth callbacks and canonical links. No trailing slash.5PUBLIC_APP_URL=https://www.polyllm.io67# --- Database ------------------------------------------------------------8DATABASE_URL=postgres://localhost:5432/polyllm9DB_POOL_MAX=101011# --- Auth ----------------------------------------------------------------12# 32+ random bytes, hex or base64. `openssl rand -hex 32`13AUTH_SECRET=1415# --- Email (Resend) ------------------------------------------------------16RESEND_API_KEY=17RESEND_FROM_EMAIL="PolyLLM <polyllm@mail.spboucher.ai>"18# Set to 1 to log emails instead of sending (development).19EMAIL_DRY_RUN=02021# --- Encryption of user provider keys (AES-256-GCM, server-side only) ----22# 32+ random bytes. Rotating this secret invalidates every stored key.23API_KEY_ENCRYPTION_SECRET=2425# --- Owner / development provider keys (TEST ONLY — never used for users) -26OPENAI_API_KEY=27ANTHROPIC_API_KEY=28GOOGLE_GEMINI_API_KEY=29XAI_API_KEY=30MISTRAL_API_KEY=31DEEPSEEK_API_KEY=32KIMI_API_KEY=33OPENROUTER_API_KEY=34CEREBRAS_API_KEY=3536# --- Custom OpenAI-compatible endpoints (Settings → Endpoints) -----------37# The PolyLLM *server* calls user-defined endpoints. Private/loopback/link-local38# addresses (localhost, 10/8, 172.16/12, 192.168/16, 169.254/16, ::1, fc00::/7…)39# are rejected to prevent SSRF. Set to 1 only for a self-hosted PolyLLM that runs40# next to Ollama / LM Studio / vLLM on the same machine or LAN.41ALLOW_PRIVATE_ENDPOINTS=04243# --- Admin ---------------------------------------------------------------44# Comma-separated emails with access to /admin.45ADMIN_EMAILS=46# Model catalog refresh interval (minutes). 0 disables the scheduler.47MODEL_SYNC_INTERVAL_MINUTES=36048