mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Update dashboard.py
This commit is contained in:
@@ -1462,7 +1462,7 @@ DashboardPlugin: DashboardPlugins = DashboardPlugins(app, WireguardConfiguration
|
||||
|
||||
InitWireguardConfigurationsList(startup=True)
|
||||
|
||||
app.static_url_path = f'{APP_PREFIX}/static'
|
||||
# app.static_url_path = f'{APP_PREFIX}/static'
|
||||
with app.app_context():
|
||||
DashboardClients: DashboardClients = DashboardClients(WireguardConfigurations)
|
||||
app.register_blueprint(createClientBlueprint(WireguardConfigurations, DashboardConfig, DashboardClients))
|
||||
@@ -1474,6 +1474,7 @@ def startThreads():
|
||||
scheduleJobThread.start()
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(app.static_url_path)
|
||||
startThreads()
|
||||
DashboardPlugin.startThreads()
|
||||
# logging.getLogger().addHandler(logging.StreamHandler())
|
||||
|
Reference in New Issue
Block a user