[任务1,3,5] NAS 实际部署 + frp 隧道打通 - 端到端可访问

- 发现 NAS 本机 80/443/3000 已被 Gitea/既有服务占用,调整 docker-compose.yml/nginx.conf 端口:nginx 改 8443(对应容器内 443),one-api 改 127.0.0.1:3001(内网回环,不再冲突 Gitea 的 3000)
- 验证 NAS 到 Gemini/NVIDIA/Groq/OpenRouter/Mistral 五渠道直连稳定(待办任务1完成)
- 确认并实施 Oracle 侧 frp 隧道反代方案:复用已运行的 frps,在 NAS frpc.toml 追加 nexusai 代理(remotePort 443 -> NAS:8443),未影响既有 gitea/wordpress/fam-core 隧道(待办任务3完成)
- NAS 上 docker compose up -d 四容器(mysql/one-api/lobe-chat/nginx)全部启动,https://129.146.203.203/ 端到端验证通过(待办任务5:部署部分完成,渠道配置/Token 待人工在 One-API 后台完成)
This commit is contained in:
ericwyuan
2026-08-23 08:45:03 +08:00
parent 188c02478b
commit 4ed463237d
4 changed files with 56 additions and 33 deletions

View File

@@ -18,9 +18,9 @@ services:
container_name: one-api
restart: always
ports:
# 仅绑定 127.0.0.1,不对局域网/公网暴露;远程管理走 SSH 隧道:
# ssh -p 2222 -L 3000:127.0.0.1:3000 ericwyuan@192.168.50.64
- "127.0.0.1:3000:3000"
# 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"
volumes:
- ./one-api-data:/data
environment:
@@ -51,8 +51,9 @@ services:
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
# NAS 本机 80/443 已被其他服务占用DSM/其他容器),改用 8443
# 甲骨文 frp 隧道frpc.toml [[proxies]] name=nexusai将公网 443 转发到 NAS 的 8443
- "8443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./certs:/etc/nginx/certs:ro