From 57e525032ca7de50f11a7342c6bd0da9cfb6c666 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 12 Feb 2026 16:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=88=E5=93=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/config.py b/server/config.py index 696105f..47f6d7a 100644 --- a/server/config.py +++ b/server/config.py @@ -7,7 +7,7 @@ import os # ─── 服务 ─── HOST: str = os.getenv("SERVER_HOST", "0.0.0.0") -PORT: int = int(os.getenv("SERVER_PORT", "8000")) +PORT: int = int(os.getenv("SERVER_PORT", "9000")) # 云服务器主端口 # ─── WebSocket ─── WS_PATH: str = "/ws" # Worker 连接端点 @@ -18,6 +18,6 @@ HEARTBEAT_TIMEOUT: int = 90 # 超时未收到心跳视为离 API_TOKEN: str = os.getenv("API_TOKEN", "") # 非空时校验 Header: Authorization: Bearer # ─── 隧道(内网穿透) ─── -TUNNEL_CONTROL_PORT: int = int(os.getenv("TUNNEL_CONTROL_PORT", "8001")) # 隧道客户端连接 -TUNNEL_STREAM_PORT: int = int(os.getenv("TUNNEL_STREAM_PORT", "8003")) # 流连接(客户端连此端口桥接) -TUNNEL_PROXY_BASE_PORT: int = int(os.getenv("TUNNEL_PROXY_BASE_PORT", "8010")) # 代理端口起始(8010=worker1, 8011=worker2...) +TUNNEL_CONTROL_PORT: int = int(os.getenv("TUNNEL_CONTROL_PORT", "9090")) # 隧道控制端口(客户端连接) +TUNNEL_STREAM_PORT: int = int(os.getenv("TUNNEL_STREAM_PORT", "9091")) # 隧道流端口(桥接用) +TUNNEL_PROXY_BASE_PORT: int = int(os.getenv("TUNNEL_PROXY_BASE_PORT", "9001")) # 代理端口起始(9001=第一台, 9002=第二台, 依次递增)