diff --git a/webui.py b/webui.py index 8e94e75..6169884 100644 --- a/webui.py +++ b/webui.py @@ -549,5 +549,7 @@ def api_reset(name): if __name__ == "__main__": - print("Откройте http://localhost:5000") - app.run(host="127.0.0.1", port=5000, debug=False) \ No newline at end of file + port = int(os.environ.get("PORT", "18091")) + host = os.environ.get("HOST", "127.0.0.1") + print(f"Откройте http://localhost:{port}") + app.run(host=host, port=port, debug=False) \ No newline at end of file