Update gunicorn.conf.py

pull/1125/head^2
Donald Zou 2026-02-02 15:23:50 +08:00
parent ddf378d617
commit 27742d65c6
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import dashboard
import os
from datetime import datetime
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger, Dash
app_host, app_port = dashboard.gunicornConfig()
@ -16,7 +17,7 @@ daemon = True
pidfile = './gunicorn.pid'
wsgi_app = "dashboard:app"
accesslog = f"./log/access_{date}.log"
loglevel = "info"
loglevel = os.environ['log_level'] if 'log_level' in os.environ else 'info'
capture_output = True
errorlog = f"./log/error_{date}.log"
pythonpath = "., ./modules"