mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-14 09:06:58 +00:00
Update
This commit is contained in:
parent
3b97cb420d
commit
927e637d88
@ -28,11 +28,11 @@ def login_required(f):
|
||||
|
||||
def createClientBlueprint(wireguardConfigurations: dict[WireguardConfiguration], dashboardConfig: DashboardConfig):
|
||||
from modules.DashboardClients import DashboardClients
|
||||
from modules.DashboardOIDC import DashboardOIDC
|
||||
|
||||
|
||||
|
||||
DashboardClients = DashboardClients(wireguardConfigurations)
|
||||
with current_app.app_context():
|
||||
DashboardClients = DashboardClients(wireguardConfigurations)
|
||||
client = Blueprint('client', __name__, template_folder=os.path.abspath("./static/client/dist"))
|
||||
prefix = f'{dashboardConfig.GetConfig("Server", "app_prefix")[1]}/client'
|
||||
|
||||
|
@ -5,7 +5,6 @@ from jose import jwt
|
||||
import certifi
|
||||
from flask import current_app
|
||||
|
||||
|
||||
class DashboardOIDC:
|
||||
ConfigurationPath = os.getenv('CONFIGURATION_PATH', '.')
|
||||
ConfigurationFilePath = os.path.join(ConfigurationPath, 'wg-dashboard-oidc-providers.json')
|
||||
|
Loading…
x
Reference in New Issue
Block a user