mirror of
https://github.com/WGDashboard/WGDashboard.git
synced 2026-08-04 06:53:00 +00:00
15 lines
384 B
Python
15 lines
384 B
Python
import multiprocessing
|
|
import dashboard
|
|
|
|
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger
|
|
app_host, app_port = dashboard.gunicornConfig()
|
|
|
|
worker_class = 'gthread'
|
|
workers = 1
|
|
threads = 1
|
|
bind = f"{app_host}:{app_port}"
|
|
# print("[WGDashboard] Gunicorn app will be running at " + bind)
|
|
daemon = True
|
|
pidfile = './gunicorn.pid'
|
|
print_config = True
|