Add optional frpc deployment profile

- Add frpc/frpc.toml template for mapping the local Docker web entry on port 4002 to the public frps server.

- Add an optional Docker Compose frpc service behind the frpc profile, mounting the reusable frpc.toml configuration.

- Document how to enable the frpc profile, inspect frpc logs, and keep normal local startup unchanged.

- Clarify that public deployments should map only port 4002 and let Nginx Proxy Manager provide HTTPS for sstwbg.example.com instead of exposing 4443.

- Update Docker and deployment docs to match the reusable frpc workflow.
This commit is contained in:
2026-05-08 16:38:39 +08:00
parent 3313811d2f
commit a781227474
5 changed files with 78 additions and 6 deletions

22
frpc/frpc.toml Normal file
View File

@@ -0,0 +1,22 @@
# XXX frpc template for exposing the local Docker web entry http://127.0.0.1:4002
# XXX Replace serverAddr and auth.token before deploying; do not commit real production tokens.
# 基础连接配置
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 = "127.0.0.1"
localPort = 4002
remotePort = 4002