Dev qing #13

Merged
qing merged 33 commits from dev_qing into main 2026-07-29 14:39:16 +08:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit f9cf408c82 - Show all commits

No files matched your search

+4 -1
View File
@@ -582,6 +582,9 @@ if __name__ == '__main__':
print("\n")
if SSL_ENABLED and os.path.exists(SSL_CERT_FILE) and os.path.exists(SSL_KEY_FILE):
# Waitress 不支持 TLS,SSL 场景回退到 Flask 内置服务器
logger.warning("SSL enabled: falling back to Flask built-in server (Waitress has no TLS support)")
app.run(host=host, port=port, ssl_context=(SSL_CERT_FILE, SSL_KEY_FILE), debug=False)
else:
app.run(host=host, port=port, debug=False)
from waitress import serve
serve(app, host=host, port=port, threads=8)
+1
View File
@@ -2,3 +2,4 @@
nuitka
Flask>=2.3.0,<3.0.0
Flask-CORS>=4.0.0,<5.0.0
waitress>=2.1.2,<4.0.0