fix(部署): One-API 管理端口改为局域网直连,SSH 隧道方案不可行

- 发现 NAS sshd 关闭了 AllowTcpForwarding,SSH -L 隧道会报 administratively prohibited,此前文档里的隧道方案实际不可用
- one-api 端口绑定改为 192.168.50.64:3001(NAS 局域网 IP),不再绑定 127.0.0.1;仍不接入 frp、不暴露公网,只是访问方式从"SSH隧道转发"改为"同局域网直连"
- 已在 NAS 上应用并验证 http://192.168.50.64:3001 可正常访问(HTTP 200)
- 同步修正 README/PROGRESS/SDD 中的管理端口访问说明
This commit is contained in:
ericwyuan
2026-08-23 09:02:54 +08:00
parent 2e1c335dbd
commit 8017f691a1
4 changed files with 8 additions and 7 deletions

View File

@@ -18,9 +18,9 @@ services:
container_name: one-api
restart: always
ports:
# 3000 已被 NAS 上的 Gitea 容器占用,改用 3001;仅绑定 127.0.0.1,不对局域网/公网暴露
# 远程管理走 SSH 隧道ssh -p 2222 -L 3001:127.0.0.1:3001 ericwyuan@192.168.50.64
- "127.0.0.1:3001:3000"
# 3000 已被 NAS 上的 Gitea 容器占用,改用 3001
# NAS sshd 关闭了 AllowTcpForwardingSSH 隧道方案不可行,改为仅绑定 NAS 局域网 IP不经 frp不映射公网
- "192.168.50.64:3001:3000"
volumes:
- ./one-api-data:/data
environment: