修复get_conf接口

This commit is contained in:
binary-husky
2023-10-30 10:59:08 +08:00
parent ecb473bc8b
commit 25cf86dae6
5 changed files with 6 additions and 5 deletions

View File

@@ -433,7 +433,7 @@ def main():
server_port=PORT,
favicon_path=os.path.join(os.path.dirname(__file__), "docs/logo.png"),
auth=AUTHENTICATION if len(AUTHENTICATION) != 0 else None,
blocked_paths=["config.py","config_private.py","docker-compose.yml","Dockerfile"])
blocked_paths=["config.py","config_private.py","docker-compose.yml","Dockerfile","gpt_log/admin"])
# 如果需要在二级路径下运行
# CUSTOM_PATH = get_conf('CUSTOM_PATH')