allow werkzeug to work in our environment

This commit is contained in:
Chuck
2025-08-13 17:32:08 -05:00
parent 33e1f05f77
commit 8e1b04550b
2 changed files with 20 additions and 7 deletions

View File

@@ -1401,4 +1401,13 @@ if __name__ == '__main__':
# In threading mode this uses Werkzeug; allow it explicitly for systemd usage
# Use eventlet server when available; fall back to Werkzeug in threading mode
logger.info(f"Starting web interface on http://0.0.0.0:5001 (async_mode={ASYNC_MODE})")
socketio.run(app, host='0.0.0.0', port=5001, debug=False, use_reloader=False)
# When running without eventlet/gevent, Flask-SocketIO uses Werkzeug, which now
# enforces a production guard unless explicitly allowed. Enable it here.
socketio.run(
app,
host='0.0.0.0',
port=5001,
debug=False,
use_reloader=False,
allow_unsafe_werkzeug=True
)