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

Testing again...

This commit is contained in:
Donald Zou 2024-08-02 21:48:42 -04:00
parent 8681df6f02
commit 461ae99dd8
2 changed files with 2 additions and 1 deletions

View File

@ -1838,7 +1838,7 @@ def gunicornConfig():
_, app_port = DashboardConfig.GetConfig("Server", "app_port") _, app_port = DashboardConfig.GetConfig("Server", "app_port")
return app_ip, app_port return app_ip, app_port
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger # global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger
sqldb = sqlite3.connect(os.path.join(CONFIGURATION_PATH, 'db', 'wgdashboard.db'), check_same_thread=False) sqldb = sqlite3.connect(os.path.join(CONFIGURATION_PATH, 'db', 'wgdashboard.db'), check_same_thread=False)
sqldb.row_factory = sqlite3.Row sqldb.row_factory = sqlite3.Row

View File

@ -1,6 +1,7 @@
import multiprocessing import multiprocessing
import dashboard import dashboard
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger
app_host, app_port = dashboard.gunicornConfig() app_host, app_port = dashboard.gunicornConfig()
worker_class = 'gthread' worker_class = 'gthread'