1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-07 00:10:13 +01:00
WGDashboard/src/gunicorn.conf.py

13 lines
259 B
Python
Raw Normal View History

import multiprocessing
2021-10-18 01:24:09 +02:00
import dashboard
app_host, app_port = dashboard.get_host_bind()
worker_class = 'gthread'
2022-03-04 16:06:14 +01:00
# workers = multiprocessing.cpu_count() * 2 + 1
workers = 1
2021-10-28 22:16:32 +02:00
threads = 4
2021-10-18 01:24:09 +02:00
bind = f"{app_host}:{app_port}"
daemon = True
pidfile = './gunicorn.pid'