Make NAS frpc run in Container Station

- Add a NAS-specific frpc template that forwards to tuwen_web:80 over the compose network.

- Make docker-compose-Nas.yaml create tuwen_frpc by default instead of relying on Compose profiles, which Container Station may not enable.

- Remove host networking from the NAS frpc service so the tunnel works through Docker service DNS.

- Update README and Docker docs to explain the NAS frpc behavior and logs command.
This commit is contained in:
2026-05-09 04:04:59 +08:00
parent e159d18f01
commit ba14d00c4d
4 changed files with 38 additions and 17 deletions

View File

@@ -88,15 +88,15 @@ TRUST_PROXY=true
CORS_ORIGIN=http://NAS_IP:4002,https://your-domain.example
```
启用 NAS 上的 frpc 隧道:
NAS 上的 frpc 隧道:
```bash
# XXX 先编辑 frpc/frpc.toml替换 serverAddr 和 auth.token。
docker compose -f docker-compose-Nas.yaml --profile frpc up -d --build
docker compose -f docker-compose-Nas.yaml logs -f frpc
# XXX 先编辑 frpc/frpc.nas.toml替换 serverAddr 和 auth.token。
docker compose -f docker-compose-Nas.yaml up -d --build
docker compose -f docker-compose-Nas.yaml logs -f tuwen_frpc
```
`# XXX` 公网正式入口只映射 `4002` 即可;不要把 `4443` 自签名 HTTPS 演示端口映射为公网域名入口。公网 HTTPS 应由 Nginx Proxy Manager 提供。
`# XXX` NAS 版为了适配 Container Station 图形界面会默认创建 `tuwen_frpc`,不依赖 Compose profile如果不需要公网映射可删除或注释 `docker-compose-Nas.yaml` 中的 `tuwen_frpc` 服务。公网正式入口只映射 `4002` 即可;不要把 `4443` 自签名 HTTPS 演示端口映射为公网域名入口。公网 HTTPS 应由 Nginx Proxy Manager 提供。
## 初始化开关