From 4a1a6c59339e37ce5e87ae91b7caa3113ea7d42b Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Fri, 4 Mar 2022 10:06:14 -0500 Subject: [PATCH] Testing --- src/dashboard.py | 2 +- src/gunicorn.conf.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dashboard.py b/src/dashboard.py index 267131b..a200361 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1744,5 +1744,5 @@ if __name__ == "__main__": app_port = config.get("Server", "app_port") WG_CONF_PATH = config.get("Server", "wg_conf_path") config.clear() - socketio.run(app, host=app_ip, debug=False, port=app_port) + socketio.run(app, host=app_ip, debug=False, port=int(app_port)) # app.run(host=app_ip, debug=False, port=app_port) diff --git a/src/gunicorn.conf.py b/src/gunicorn.conf.py index 56b82ce..0123b4c 100644 --- a/src/gunicorn.conf.py +++ b/src/gunicorn.conf.py @@ -4,7 +4,8 @@ import dashboard app_host, app_port = dashboard.get_host_bind() worker_class = 'gthread' -workers = multiprocessing.cpu_count() * 2 + 1 +# workers = multiprocessing.cpu_count() * 2 + 1 +workers = 1 threads = 4 bind = f"{app_host}:{app_port}" daemon = True