Update for plugin
parent
549982db7f
commit
2ec190ecfd
|
|
@ -1457,7 +1457,7 @@ WireguardConfigurations: dict[str, WireguardConfiguration] = {}
|
|||
AllPeerShareLinks: PeerShareLinks = PeerShareLinks(DashboardConfig, WireguardConfigurations)
|
||||
AllPeerJobs: PeerJobs = PeerJobs(DashboardConfig, WireguardConfigurations)
|
||||
DashboardLogger: DashboardLogger = DashboardLogger()
|
||||
DashboardPlugin: DashboardPlugins = DashboardPlugins(app, WireguardConfigurations)
|
||||
DashboardPlugins: DashboardPlugins = DashboardPlugins(app, WireguardConfigurations)
|
||||
|
||||
|
||||
InitWireguardConfigurationsList(startup=True)
|
||||
|
|
@ -1475,7 +1475,7 @@ def startThreads():
|
|||
|
||||
if __name__ == "__main__":
|
||||
startThreads()
|
||||
DashboardPlugin.startThreads()
|
||||
DashboardPlugins.startThreads()
|
||||
# logging.getLogger().addHandler(logging.StreamHandler())
|
||||
app.logger.addHandler(logging.StreamHandler())
|
||||
app.run(host=app_ip, debug=False, port=app_port)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import os.path
|
||||
import dashboard, configparser
|
||||
from datetime import datetime
|
||||
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger
|
||||
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger, Dash
|
||||
app_host, app_port = dashboard.gunicornConfig()
|
||||
date = datetime.today().strftime('%Y_%m_%d_%H_%M_%S')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue