From 1f1dc764d4a1ec3dfbef9409641628c1f377e890 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 18 Jul 2023 18:30:09 +0800 Subject: [PATCH] bugfix --- ahserver/configuredServer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ahserver/configuredServer.py b/ahserver/configuredServer.py index 209c90f..61e8a49 100755 --- a/ahserver/configuredServer.py +++ b/ahserver/configuredServer.py @@ -30,6 +30,7 @@ class ConfiguredServer(AppLogger): config = getConfig() if config.databases: DBPools(config.databases) + self.config = config initEnv() setupTemplateEngine() client_max_size = 1024 * 10240 @@ -41,10 +42,10 @@ class ConfiguredServer(AppLogger): def run(self): auth = self.auth_klass() - await auth.setupAuth(self.app) + auth.setupAuth(self.app) + config = getConfig() self.configPath(config) a = TmpFileRecord() - config = getConfig() ssl_context = None if config.website.ssl: ssl_context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)