-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
47 lines (36 loc) · 1.2 KB
/
.env.example
File metadata and controls
47 lines (36 loc) · 1.2 KB
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
40
41
42
43
44
45
46
47
# ResGov Environment Configuration
# Copy to .env and fill in your values
# --- Authentication ---
# Admin token for /admin/* endpoints
RESGOV_ADMIN_TOKEN=
# Legacy: comma-separated API keys (migrated to DB on first start)
# Format: "key1:owner1,key2:owner2"
RESGOV_API_KEYS=
# --- Database ---
RESGOV_DB_PATH=/data/resgov.db
# --- Server ---
RESGOV_HOST=0.0.0.0
RESGOV_PORT=8080
# --- CORS ---
# Comma-separated allowed origins (empty = allow all in dev)
RESGOV_CORS_ORIGINS=
# --- LLM Provider ---
# Choose: "openrouter" (default) or "github-copilot"
RESGOV_PROVIDER=openrouter
# --- OpenRouter (default provider) ---
RESGOV_UPSTREAM_URL=https://openrouter.ai/api/v1/chat/completions
RESGOV_UPSTREAM_API_KEY=
# --- GitHub Copilot (alternative provider) ---
# Set RESGOV_PROVIDER=github-copilot to activate
# Requires a GitHub OAuth token with copilot scope
GITHUB_COPILOT_TOKEN=
# --- Custom Price Table (optional) ---
# Override model pricing as JSON: {"model": {"input": 0.001, "output": 0.002}}
RESGOV_PRICE_TABLE=
# --- Dashboard ---
# Basic auth credentials (leave DASH_PASS empty to disable auth)
RESGOV_DASH_USER=admin
RESGOV_DASH_PASS=
# --- Backup ---
RESGOV_BACKUP_DIR=/data/backups
RESGOV_BACKUP_RETENTION=7