WGDashboard/src/gunicorn.conf.py

11 lines
211 B
Python
Raw Normal View History

import multiprocessing
2021-10-18 02:24:09 +03:00
import dashboard
2024-06-18 03:40:25 +08:00
app_host, app_port = dashboard.gunicornConfig()
worker_class = 'gthread'
workers = 4
2024-06-18 03:40:25 +08:00
threads = 2
2021-10-18 02:24:09 +03:00
bind = f"{app_host}:{app_port}"
daemon = True
pidfile = './gunicorn.pid'