37 lines
1.9 KiB
Bash
37 lines
1.9 KiB
Bash
# Backend Environment Variables
|
|
# Salin file ini menjadi .env: cp backend/.env.example backend/.env
|
|
|
|
# ── Server ───────────────────────────────────────────────────────────────────
|
|
PORT=5001
|
|
NODE_ENV=development
|
|
|
|
# ── PostgreSQL ───────────────────────────────────────────────────────────────
|
|
# PENTING: 15432, BUKAN 5432.
|
|
# docker-compose memetakan Postgres di container ke port 15432 di host, supaya
|
|
# tidak bentrok dengan Postgres yang mungkin sudah terpasang di komputer Anda.
|
|
# Isi 5432 di sini adalah penyebab error "ECONNREFUSED" saat backend start.
|
|
DB_HOST=localhost
|
|
DB_PORT=15432
|
|
DB_USER=dashboard_user
|
|
DB_PASSWORD=isi_dengan_password_yang_sama_seperti_di_.env_root
|
|
DB_NAME=dashboard_db
|
|
DB_SSL=false
|
|
|
|
# Connection pool (opsional)
|
|
DB_POOL_MIN=2
|
|
DB_POOL_MAX=10
|
|
|
|
# ── LLM (Ollama) ─────────────────────────────────────────────────────────────
|
|
# Tanpa LLM_MODEL_NAME, semua AI Insight gagal dengan error "model not found".
|
|
# Model ini harus sudah di-pull:
|
|
# docker exec dashboard-llm ollama pull qwen2.5:7b
|
|
LLM_MODEL_NAME=qwen2.5:7b
|
|
LM_STUDIO_BASE_URL=http://localhost:11434
|
|
|
|
# ── Layanan RAG (Python, port 5002) ──────────────────────────────────────────
|
|
RAG_SERVICE_URL=http://localhost:5002
|
|
|
|
# ── Opsional ─────────────────────────────────────────────────────────────────
|
|
# Jam batas filter D-1 (default 17). Ubah hanya untuk pengujian.
|
|
# CUTOFF_HOUR_OVERRIDE=17
|