2021-10-24 23:41:06 +03:00
|
|
|
import multiprocessing
|
2021-10-18 02:24:09 +03:00
|
|
|
import dashboard
|
|
|
|
|
2024-08-02 21:48:42 -04:00
|
|
|
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger
|
2024-06-18 03:40:25 +08:00
|
|
|
app_host, app_port = dashboard.gunicornConfig()
|
2021-10-24 23:41:06 +03:00
|
|
|
|
|
|
|
worker_class = 'gthread'
|
2024-08-03 13:25:57 -04:00
|
|
|
workers = 1
|
|
|
|
threads = 1
|
2021-10-18 02:24:09 +03:00
|
|
|
bind = f"{app_host}:{app_port}"
|
|
|
|
daemon = True
|
2024-08-04 18:59:45 -04:00
|
|
|
pidfile = './gunicorn.pid'
|
2024-08-04 19:32:16 -04:00
|
|
|
wsgi_app = "dashboard:app"
|
2024-08-04 19:35:59 -04:00
|
|
|
access_logfile = "./log/access.log"
|
|
|
|
log_level = "debug"
|
|
|
|
capture_output = True
|
|
|
|
error_logfile = "./log/error.log"
|