bunker-admin 2fa50b001c Merge changemaker-control-panel into v2 monorepo
Absorbs the separate control-panel git repo as a subdirectory.
Instances and backups directories excluded via .gitignore.

Bunker Admin
2026-02-21 11:51:45 -07:00

60 lines
1.7 KiB
Plaintext

# ============================================================
# Changemaker Control Panel — Environment Variables
# ============================================================
# Server
NODE_ENV=development
PORT=5000
ADMIN_PORT=5100
# Database
DATABASE_URL=postgresql://ccp:ccp_secret@localhost:5480/ccp
CCP_POSTGRES_PASSWORD=ccp_secret
# Redis
REDIS_URL=redis://:ccp_redis_secret@localhost:6399
REDIS_PASSWORD=ccp_redis_secret
# JWT Secrets (generate with: openssl rand -hex 32)
JWT_ACCESS_SECRET=change-me-to-a-random-64-char-hex-string-for-access-tokens!!
JWT_REFRESH_SECRET=change-me-to-a-random-64-char-hex-string-for-refresh-tokens!
# Encryption key for secrets at rest (openssl rand -hex 32)
ENCRYPTION_KEY=change-me-to-a-random-64-char-hex-string-for-encryption-keys!
# Initial Admin Account
INITIAL_ADMIN_EMAIL=admin@example.com
INITIAL_ADMIN_PASSWORD=ChangeMe2025!!
# CORS
CORS_ORIGINS=http://localhost:5100
# Instance Management
# Absolute paths — auto-resolved by setup.sh (run ./setup.sh after cloning)
INSTANCES_BASE_PATH=/path/to/changemaker-control-panel/instances
CML_SOURCE_PATH=/path/to/changemaker.lite
CML_GIT_REPO=https://github.com/your-org/changemaker.lite.git
CML_GIT_BRANCH=v2
# Port Allocation Ranges
PORT_RANGE_API_START=14000
PORT_RANGE_API_END=14999
PORT_RANGE_ADMIN_START=13000
PORT_RANGE_ADMIN_END=13999
PORT_RANGE_POSTGRES_START=15400
PORT_RANGE_POSTGRES_END=15499
PORT_RANGE_NGINX_START=10000
PORT_RANGE_NGINX_END=10999
# Pangolin (optional — for tunnel management)
PANGOLIN_API_URL=
PANGOLIN_API_KEY=
PANGOLIN_ORG_ID=
# Health Checks (0 to disable automated checks)
HEALTH_CHECK_INTERVAL_MS=300000
# Backups (auto-resolved by setup.sh)
BACKUP_STORAGE_PATH=/path/to/changemaker-control-panel/backups
BACKUP_RETENTION_DAYS=30