mirror of
https://github.com/donaldzou/WGDashboard
synced 2025-06-26 18:26:58 +00:00
12 lines
245 B
Python
12 lines
245 B
Python
import multiprocessing
|
|
import dashboard
|
|
|
|
app_host, app_port = dashboard.get_host_bind()
|
|
|
|
worker_class = 'gthread'
|
|
workers = multiprocessing.cpu_count() * 2 + 1
|
|
threads = 4
|
|
bind = f"{app_host}:{app_port}"
|
|
daemon = True
|
|
pidfile = './gunicorn.pid'
|