chore: cleanup

This commit is contained in:
Soulter
2025-03-03 17:10:47 +08:00
committed by GitHub
parent f4d12e4e5e
commit bc06acdd25
+2 -2
View File
@@ -23,7 +23,7 @@ class AstrBotDashboard():
self.config = core_lifecycle.astrbot_config
self.data_path = os.path.abspath(os.path.join(DATAPATH, "dist"))
self.app = Quart("dashboard", static_folder=self.data_path, static_url_path="/")
self.app.config['MAX_CONTENT_LENGTH'] = 128 * 1024 * 1024 # 将Flask允许的最大上传文件体大小设置为128MB
self.app.config['MAX_CONTENT_LENGTH'] = 128 * 1024 * 1024 # 将 Flask 允许的最大上传文件体大小设置为 128 MB
self.app.json.sort_keys = False
self.app.before_request(self.auth_middleware)
# token 用于验证请求
@@ -141,4 +141,4 @@ class AstrBotDashboard():
logger.info(display)
return self.app.run_task(host="0.0.0.0", port=port, shutdown_trigger=self.shutdown_trigger_placeholder)
return self.app.run_task(host="0.0.0.0", port=port, shutdown_trigger=self.shutdown_trigger_placeholder)