Switch to Port 80 using authbind for non-root access
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user