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