Switch to Port 80 using authbind for non-root access

This commit is contained in:
Gemini Bot
2026-01-20 13:12:34 +00:00
parent bf1241850b
commit 6e2a9d5b2e
3 changed files with 16 additions and 3 deletions

View File

@@ -16,4 +16,9 @@ fi
echo "Starting NecroHash WebGUI..."
# Run with gunicorn for production or python directly for dev.
# Using python for simplicity as requested on Pi 1
python app.py
# Use authbind if available to bind port 80 as non-root
if command -v authbind >/dev/null 2>&1; then
authbind --deep python app.py
else
python app.py
fi