Fixed Gunicorn global variable issue

This commit is contained in:
Donald Zou
2024-08-03 13:25:57 -04:00
parent 461ae99dd8
commit b64ba2ef16
2 changed files with 10 additions and 7 deletions

View File

@@ -5,8 +5,8 @@ global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, Job
app_host, app_port = dashboard.gunicornConfig()
worker_class = 'gthread'
workers = 4
threads = 2
workers = 1
threads = 1
bind = f"{app_host}:{app_port}"
daemon = True
pidfile = './gunicorn.pid'