save code

This commit is contained in:
colomi
2025-07-20 22:33:25 +08:00
parent b30efd013b
commit c37e0e473d
5 changed files with 451 additions and 35 deletions
+3 -3
View File
@@ -72,13 +72,13 @@ def get_server_state():
@monitor.route('/')
def serve_index():
return send_from_directory('static', 'index.html')
return send_from_directory('static', 'monitor.html')
if __name__ == '__main__':
# 启动Flask应用,启用多线程处理
monitor.run(
host='0.0.0.0',
port=5001,
threaded=True, # 启用多线程处理并发请求
port=8018,
threaded=False, # 启用多线程处理并发请求
debug=False # 生产环境应设置为False
)