1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 15:20:09 +01:00
This commit is contained in:
Donald Cheng Hong Zou 2022-03-04 10:06:14 -05:00
parent 7e1fd99c37
commit 4a1a6c5933
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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