From 011cfc55e100ffda5153c7ed14b287f6757842c2 Mon Sep 17 00:00:00 2001 From: Hemna Date: Wed, 26 Jul 2023 08:47:22 -0400 Subject: [PATCH] Use config web_ip for running admin ui from module When running the web admin interface with 'python -m aprsd.wsgi' the Flask app global now uses the web_ip config entry for listening. Also disabled debug output. --- aprsd/wsgi.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aprsd/wsgi.py b/aprsd/wsgi.py index 7171671..704455c 100644 --- a/aprsd/wsgi.py +++ b/aprsd/wsgi.py @@ -330,7 +330,12 @@ if __name__ == "__main__": setup_logging(app, log_level) sio.register_namespace(LoggingNamespace("/logs")) CONF.log_opt_values(LOG, logging.DEBUG) - app.run(threaded=True, debug=True, port=CONF.admin.web_port) + app.run( + threaded=True, + debug=False, + port=CONF.admin.web_port, + host=CONF.admin.web_ip, + ) if __name__ == "uwsgi_file_aprsd_wsgi":