mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-26 14:17:17 +02:00
7096281fd0
PeaNUT v6 enables authentication by default and on first boot redirects to a setup page (#14221). Settings can only be controlled via environment variables (AUTH_DISABLED, WEB_USERNAME, WEB_PASSWORD, WEB_HOST/PORT, NUT_HOST/PORT) — settings.yml does not cover them. Refactor the systemd unit to load all runtime configuration from /etc/peanut/peanut.env (mode 0600) instead of hardcoded Environment= lines. The file documents every supported variable, with auth-related options pre-listed but commented out. Existing installations are migrated transparently in update_script: the env file is created on first update, hardcoded Environment= lines are stripped and EnvironmentFile= is injected into the unit.
1.7 KiB
1.7 KiB