File size: 2,370 Bytes
e1d8498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# ─────────────────────────────────────────────────────────────────────────────
# AI Gateway Hub β€” Environment Configuration
# Copy this file to .env and fill in your values.
# ─────────────────────────────────────────────────────────────────────────────

# ── Security ──────────────────────────────────────────────────────────────────
# Master key for LiteLLM proxy admin API.
# Change this in production!
LITELLM_MASTER_KEY=sk-gateway-master-key-change-me

# JWT secret for backend sessions (future use).
JWT_SECRET=super-secret-jwt-key-change-in-production

# ── Networking ────────────────────────────────────────────────────────────────
# The public URL where your gateway is accessible.
# This is used to generate the OpenAI-compatible endpoint URLs shown in the UI.
GATEWAY_PUBLIC_URL=http://localhost

# HTTP/HTTPS ports for the nginx reverse proxy.
HTTP_PORT=80
HTTPS_PORT=443

# ── Optional: Pre-configured provider keys ───────────────────────────────────
# These can be set here as env vars for providers configured in litellm/config.yaml.
# OPENAI_API_KEY=sk-...
# ANTHROPIC_API_KEY=sk-ant-...
# GROQ_API_KEY=gsk_...
# GEMINI_API_KEY=...
# COHERE_API_KEY=...
# MISTRAL_API_KEY=...
# TOGETHER_API_KEY=...
# PERPLEXITYAI_API_KEY=pplx-...

# ── Logging ───────────────────────────────────────────────────────────────────
# BUG FIX #1: Was "info" (level 2) which silently drops all Morgan HTTP logs
# (level 3). Must be "http" or lower to see HTTP access logs in the console.
# Winston level hierarchy: error(0) < warn(1) < info(2) < http(3) < verbose(4)
LOG_LEVEL=http