- 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.
24 lines
609 B
TOML
24 lines
609 B
TOML
# XXX QNAP/NAS frpc template.
|
|
# XXX Replace serverAddr and auth.token before deploying; do not commit real production tokens.
|
|
# XXX This file is mounted by docker-compose-Nas.yaml. frpc connects to tuwen_web:80 inside Docker.
|
|
|
|
# 基础连接配置
|
|
serverAddr = "XX.XX.XX.XX"
|
|
serverPort = 7000
|
|
|
|
# 权限验证 - 必须与服务端一致
|
|
auth.method = "token"
|
|
auth.token = "XXX"
|
|
|
|
# 传输配置优化
|
|
transport.poolCount = 5
|
|
transport.heartbeatTimeout = -1
|
|
|
|
# --- 映射 图文系统访问端口 (TCP) ---
|
|
[[proxies]]
|
|
name = "TuWen_System_V2"
|
|
type = "tcp"
|
|
localIP = "tuwen_web"
|
|
localPort = 80
|
|
remotePort = 4002
|