-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
74 lines (65 loc) · 3.6 KB
/
Copy path.env.example
File metadata and controls
74 lines (65 loc) · 3.6 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# CLIProxyAPI Stack Environment Configuration
# Generated by install.sh — copy to infrastructure/.env and fill in values
# NEVER commit real secrets to version control
# =============================================================================
# Domain Configuration
# =============================================================================
DOMAIN=example.com
DASHBOARD_SUBDOMAIN=dashboard
API_SUBDOMAIN=api
# =============================================================================
# Database (PostgreSQL)
# =============================================================================
# Full connection string used by the dashboard (Prisma)
DATABASE_URL=postgresql://cliproxyapi:CHANGE_ME_POSTGRES_PASSWORD@postgres:5432/cliproxyapi
# Password for the Postgres container (generate with: openssl rand -hex 32)
# WARNING: Only used during first-time DB initialization. Changing this after
# the database volume exists will NOT update the password, causing auth failures.
# To reset: docker compose down -v (destroys all data)
POSTGRES_PASSWORD=CHANGE_ME_POSTGRES_PASSWORD
# =============================================================================
# Dashboard Authentication
# =============================================================================
# Secret key for signing JWT tokens (generate with: openssl rand -base64 32)
JWT_SECRET=CHANGE_ME_JWT_SECRET
# =============================================================================
# CLIProxyAPI Management API
# =============================================================================
# Key to authenticate dashboard → CLIProxyAPI management requests
# Must match MANAGEMENT_PASSWORD env var in CLIProxyAPI container
MANAGEMENT_API_KEY=CHANGE_ME_MANAGEMENT_KEY
# Internal URL for management API (Docker network)
CLIPROXYAPI_MANAGEMENT_URL=http://cliproxyapi:8317/v0/management
#
# OAuth URLs (e.g. anthropic-auth-url) are served by CLIProxyAPI, not the dashboard.
# If the dashboard returns 500 with "server port is not configured", the proxy container
# is missing a valid listen port in its effective config. Ensure the stack mounts
# infrastructure/config/config.yaml (see docker-compose cliproxyapi volumes) and that it
# contains `port: 8317` (or your chosen port). MANAGEMENT_API_KEY here must match
# MANAGEMENT_PASSWORD on the CLIProxyAPI service.
# =============================================================================
# Usage Collector (Cron)
# =============================================================================
# Optional: API key for external cron job to trigger usage collection
# without a browser session. Use with: curl -X POST /api/usage/collect
# -H "Authorization: Bearer <this-key>"
# Generate with: openssl rand -hex 32
COLLECTOR_API_KEY=
# =============================================================================
# Installation Directory
# =============================================================================
INSTALL_DIR=/opt/cliproxyapi
# =============================================================================
# General
# =============================================================================
TZ=UTC
# =============================================================================
# Logging
# =============================================================================
# Pino log level: fatal, error, warn, info, debug, trace
LOG_LEVEL=info
# =============================================================================
# Derived URLs (for reference only)
# =============================================================================
# DASHBOARD_URL=https://dashboard.example.com
# API_URL=https://api.example.com