update .env.example
This commit is contained in:
1 parent
f49e72592c
commit
31272035e9
1 file changed
+46
@@ -1,2 +1,48 @@
|
||||
# ==============================================================================
|
||||
# Dashboard CPSP Executive - Environment Variables Template
|
||||
# ==============================================================================
|
||||
# Salin file ini menjadi .env di root project:
|
||||
# Linux/macOS : cp .env.example .env
|
||||
# Windows : copy .env.example .env
|
||||
# ==============================================================================
|
||||
|
||||
# --- Frontend (Vite) ---
|
||||
# Local dev: Vite proxies /api → HQ Django :8001
|
||||
VITE_API_BASE=/api/v1
|
||||
|
||||
# --- Docker Compose / Production ---
|
||||
# Host port untuk UI container (default 80, ganti ke 8080 jika port 80 sudah terpakai)
|
||||
FRONTEND_PORT=8080
|
||||
|
||||
# --- PostgreSQL (Docker Compose) ---
|
||||
DB_USER=executive
|
||||
DB_PASSWORD=change_this_to_a_strong_password
|
||||
DB_NAME=executive
|
||||
|
||||
# --- Django HQ API ---
|
||||
SECRET_KEY=change-me-in-production-use-a-long-random-string
|
||||
DEBUG=false
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1,api,frontend,executive.local,host.docker.internal
|
||||
CSRF_TRUSTED_ORIGINS=http://localhost,http://127.0.0.1,http://executive.local,http://localhost:8080,http://127.0.0.1:8080
|
||||
CORS_ALLOWED_ORIGINS=http://localhost,http://127.0.0.1,http://executive.local,http://localhost:8080,http://127.0.0.1:8080
|
||||
CORS_ALLOW_CREDENTIALS=true
|
||||
|
||||
# --- Production Admin Seed (bootstrap_admin) ---
|
||||
BOOTSTRAP_ADMIN_USER=admin
|
||||
BOOTSTRAP_ADMIN_PASSWORD=Pr04dm1n
|
||||
|
||||
# Opsional Production GM (kosongkan jika tidak diperlukan)
|
||||
BOOTSTRAP_STAFF_USER=
|
||||
BOOTSTRAP_STAFF_PASSWORD=
|
||||
|
||||
# Opsional: API key untuk city-site inbound / sync script (hashed at rest)
|
||||
BOOTSTRAP_API_KEY=
|
||||
|
||||
# --- HQ Mirror Sync (pull dari export API pusat farm: ops + IoT) ---
|
||||
ACTIVE_SITE_MIRROR_SYNC_ENABLED=true
|
||||
ACTIVE_SITE_MIRROR_CLOSED_LIMIT=3
|
||||
|
||||
# --- Dashboard Publish Cutoff (WIB) ---
|
||||
# Data hari D mulai ditampilkan ke role non-admin dari pukul 17:00 WIB
|
||||
DASHBOARD_PUBLISH_HOUR=17
|
||||
DASHBOARD_PUBLISH_MINUTE=0
|
||||
Reference in new issue
Block a user