wutzcalc/deploy/wutzcalc.env.example
müde 179a231b58 deploy: add systemd unit + env template, document service setup
also document WUTZ_TZ / WUTZ_DAY_CUTOFF_HOUR env vars
2026-06-14 22:00:13 +02:00

18 lines
668 B
Text

# Copy to /etc/wutzcalc/wutzcalc.env and edit.
# Keep it readable only by root / the service user — it holds the admin password:
# sudo install -m 600 -o root -g root deploy/wutzcalc.env.example /etc/wutzcalc/wutzcalc.env
# Required: backoffice login password.
ADMIN_PASSWORD=changeme
# SQLite database file. With StateDirectory=wutzcalc this dir is created for you.
DB_PATH=/var/lib/wutzcalc/wutz.db
# Network bind (defaults: 0.0.0.0:3000).
PORT=3000
HOST=0.0.0.0
# Sales-day handling (defaults shown). Hours before the cutoff count toward the
# previous business day, so a 03:00 sale lands on the night before.
#WUTZ_TZ=Europe/Berlin
#WUTZ_DAY_CUTOFF_HOUR=5