41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Docker Compose environment — copy to project root:
|
|
# cp docker/.env.example .env
|
|
|
|
# --- PostgreSQL ---
|
|
DB_USER=newdashboard
|
|
DB_PASSWORD=change_this_to_a_strong_password
|
|
DB_NAME=newdashboard
|
|
|
|
# --- Django ---
|
|
SECRET_KEY=change-me-in-production-use-a-long-random-string
|
|
DEBUG=false
|
|
ALLOWED_HOSTS=localhost,127.0.0.1,api,frontend
|
|
CSRF_TRUSTED_ORIGINS=http://localhost:5002,http://127.0.0.1:5002
|
|
CORS_ALLOWED_ORIGINS=http://localhost:5002,http://127.0.0.1:5002
|
|
|
|
WAGTAIL_SITE_NAME=New Dashboard
|
|
WAGTAILADMIN_BASE_URL=http://localhost:5002
|
|
|
|
# Production admin (bootstrap_admin — no demo data)
|
|
BOOTSTRAP_ADMIN_USER=admin
|
|
BOOTSTRAP_ADMIN_PASSWORD=Pr04dm1n
|
|
|
|
# Optional: fixed API key for scripts (hashed at rest)
|
|
BOOTSTRAP_API_KEY=
|
|
|
|
# karung-web-admin on the Docker host
|
|
KARUNG_WEB_ADMIN_BASE_URL=http://host.docker.internal:5000
|
|
KARUNG_WEB_ADMIN_TIMEOUT_SECONDS=30
|
|
KARUNG_WEB_ADMIN_SYNC_ENABLED=false
|
|
|
|
# Dashboard publish cutoff (WIB): day D visible from 17:00 on day D
|
|
DASHBOARD_PUBLISH_HOUR=17
|
|
DASHBOARD_PUBLISH_MINUTE=0
|
|
|
|
# IoT panel — real-time sync every 10 min (excluded from publish cutoff)
|
|
IOT_SYNC_ENABLED=true
|
|
IOT_API_BASE_URL=https://dashboard.cpsp.id/api/iot/flocks
|
|
IOT_SYNC_LOOKBACK_MINUTES=20
|
|
IOT_SYNC_MAX_PAGES=10
|
|
IOT_FLOCK_ID_MAP={}
|