1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-22 09:31:42 -05:00

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.
This commit is contained in:
Hemna 2023-07-26 08:47:22 -04:00
parent e0c3c5cbbf
commit 011cfc55e1

View File

@ -330,7 +330,12 @@ if __name__ == "__main__":
setup_logging(app, log_level) setup_logging(app, log_level)
sio.register_namespace(LoggingNamespace("/logs")) sio.register_namespace(LoggingNamespace("/logs"))
CONF.log_opt_values(LOG, logging.DEBUG) 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": if __name__ == "uwsgi_file_aprsd_wsgi":