Files

42 lines
1.7 KiB
Bash

# karung-web-admin environment configuration
#
# Copy once per machine, then edit values for that site:
# cp .env.example .env
#
# Note: Source URLs (KTC/KPC) are configured in sources.env (see sources.env.example)
#
# Restart services after changes:
# sudo systemctl restart karung-web-admin.service
# -----------------------------------------------------------------------------
# Data file paths (optional — defaults are in the app directory)
# -----------------------------------------------------------------------------
# KARUNG_TUANG_JSON=karung_tuang.json
# KARUNG_MASUK_JSON=karung_masuk.json
# KARUNG_TUANG_DB=karung_tuang.db
# KARUNG_MASUK_DB=karung_masuk.db
# -----------------------------------------------------------------------------
# Daily data business-day cutoffs (optional — overrides dashboard DB settings)
# -----------------------------------------------------------------------------
# Times use HH:MM or HH:MM:SS in LOCAL_TIMEZONE.
# Use 24:00:00 for end-of-day (calendar day until midnight).
# After cutoff, the dashboard labels that counter side as the next business date.
#
# LOCAL_TIMEZONE: Asia/Jakarta (WIB), Asia/Makassar (WITA), or Asia/Jayapura (WIT)
LOCAL_TIMEZONE=Asia/Jakarta
# When Karung Tuang (Use) rolls to the next business day
TUANG_CUTOFF_TIME=17:00:00
# When Karung Masuk (In/Out) rolls to the next business day
MASUK_CUTOFF_TIME=24:00:00
# Cycle API (maps K1 -> Kandang 1, K2 -> Kandang 2, etc.)
# Base URL without trailing slash; http:// is added automatically if omitted.
CYCLE_API_BASE_URL=http://192.168.192.106:5002
CYCLE_API_KEY=test-api-key
# Optional path for exported counter settings JSON (used by other services)
# COUNTER_SETTINGS_FILE=counter_settings.json