Just http://<pi-ip> now instead of http://<pi-ip>:8080. Safe since the systemd service already runs as root (needed for GPIO/SPI access anyway), so binding the privileged port isn't a new requirement. Local --mock dev stays on 8080 (README/main.py default unchanged) -- that's normally run without root, and port 80 needs it. install.sh now does enable + restart instead of enable --now, so re-running it after a unit-file change (like this one) actually applies on an already-installed instance, not just a fresh install.
17 lines
407 B
Plaintext
17 lines
407 B
Plaintext
[Unit]
|
|
Description=Paperwall (Navidrome / Clock / Weather e-ink dashboard)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
# Filled in by install.sh to point at this project's own self-contained venv.
|
|
ExecStart={{PYTHON}} {{APP_DIR}}/main.py --host 0.0.0.0 --port 80
|
|
WorkingDirectory={{APP_DIR}}
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
User=root
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|