DEBUG=True SECRET_KEY=change-me-in-production ALLOWED_HOSTS=localhost,127.0.0.1,api,dashboard.local CSRF_TRUSTED_ORIGINS=http://localhost:8000,http://127.0.0.1:8000,http://localhost:3001,http://127.0.0.1:3001 CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:3001,http://127.0.0.1:3001 CORS_ALLOW_CREDENTIALS=True # SQLite (local) DB_ENGINE=django.db.backends.sqlite3 DB_NAME=db.sqlite3 # Docker/compose typically overrides to: # DB_NAME=/app/data/db.sqlite3 # PostgreSQL (production / Docker Compose) — set in project root .env.example # DB_ENGINE=django.db.backends.postgresql # DB_NAME=newdashboard # DB_USER=newdashboard # DB_PASSWORD=change-me # DB_HOST=database # DB_PORT=5432 API_PAGE_SIZE=50 SESSION_COOKIE_SECURE=False CSRF_COOKIE_SECURE=False # Optional: fixed machine API key for pusat pull + scripts (hashed at rest). SITE_API_KEY= # Production bootstrap (bootstrap_admin — no demo data) BOOTSTRAP_ADMIN_USER=admin BOOTSTRAP_ADMIN_PASSWORD= # Optional staff account (leave BOOTSTRAP_STAFF_USER empty to skip) BOOTSTRAP_STAFF_USER= BOOTSTRAP_STAFF_PASSWORD= # Pusat (executive) cycle-close + register channel # Outbound register/notify uses PUSAT_API_KEY; inbound apply-close-decision # authenticates with SITE_API_KEY (X-API-Key). active_site_id is persisted on register. PUSAT_BASE_URL= PUSAT_API_KEY= # This site's public API root including /api/v1 (written to executive ActiveSite). SITE_API_BASE_URL= # karung-web-admin (external) KARUNG_WEB_ADMIN_BASE_URL=http://127.0.0.1:5000 KARUNG_WEB_ADMIN_TIMEOUT_SECONDS=30 KARUNG_WEB_ADMIN_SYNC_ENABLED=false DASHBOARD_PUBLISH_HOUR=17 DASHBOARD_PUBLISH_MINUTE=0 # IoT panel — real-time sync every 10 min (excluded from publish cutoff). # Configure per-flock API URLs in Settings (Flock → API Panel IoT). IOT_SYNC_ENABLED=true IOT_SYNC_LOOKBACK_MINUTES=20 IOT_SYNC_MAX_PAGES=10 # Chicken counting edge vision API (counting + mortality + weight) CHICKEN_COUNTING_EDGE_BASE_URL=http://192.168.192.106:8090 CHICKEN_COUNTING_EDGE_TIMEOUT_SECONDS=30 CHICKEN_COUNTING_EDGE_COUNTING_SYNC_ENABLED=true CHICKEN_COUNTING_EDGE_MORTALITY_SYNC_ENABLED=true CHICKEN_COUNTING_EDGE_WEIGHT_SYNC_ENABLED=true # AI Insight (Ollama on host + RAG service) RAG_SERVICE_URL=http://127.0.0.1:5002 OLLAMA_BASE_URL=http://127.0.0.1:11434 LLM_MODEL_NAME=qwen2.5:3b LLM_TIMEOUT_SECONDS=1200 # Plan §6 CPU inference tuning (Profile A 8GB: qwen2.5:1.5b; Profile B 16GB: qwen2.5:3b) LLM_NUM_CTX=2048 LLM_NUM_THREAD=4 LLM_SEED=42 LLM_TEMPERATURE=0.2