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

12 lines
298 B
Python
Raw Normal View History

import multiprocessing
2021-10-18 01:24:09 +02:00
import dashboard
2024-08-03 03:48:42 +02:00
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger
2024-06-17 21:40:25 +02:00
app_host, app_port = dashboard.gunicornConfig()
worker_class = 'gthread'
workers = 4
2024-06-17 21:40:25 +02:00
threads = 2
2021-10-18 01:24:09 +02:00
bind = f"{app_host}:{app_port}"
daemon = True
pidfile = './gunicorn.pid'