Files
Pre_Seg_Server/docker/frpc/frpc.toml
admin 8b4aa609c8 增加可选frpc内网穿透部署配置
- 在 Docker Compose 中新增 frpc 可选服务,默认不启动,仅在 --profile frpc 启用时运行。

- 新增 docker/frpc/frpc.toml 模板,按前端、后端 API/WebSocket、MinIO 三个端口提供 TCP 映射示例。

- 在 frpc.toml 中用 # XXXX 标注 frps 地址、端口、token 和远端映射端口等需要按环境修改的配置。

- 更新 README,补充内置 frpc 与 frpc/frps + NPM 公网域名部署流程、启动命令和日志查看命令。
2026-05-07 22:23:41 +08:00

46 lines
1.3 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# frpc template for Seg_Server_Docker.
# This file is not used by default. Enable it with the Docker Compose "frpc" profile
# after replacing every "# XXXX" placeholder below.
# 基础连接配置
# XXXX 公网 frps 服务器地址,例如 "1.2.3.4" 或 "frps.example.com"
serverAddr = "XX.XX.XX.XX"
# XXXX 公网 frps 服务端口,必须与 frps 的 bindPort 一致
serverPort = 7000
# 权限验证 - 必须与服务端一致
auth.method = "token"
# XXXX 必须替换为 frps 服务端配置中的 token
auth.token = "XXXXX"
# 传输配置优化
transport.poolCount = 5
transport.heartbeatTimeout = -1
# --- 映射前端访问端口 ---
# XXXX NPM 可反代公网服务器本机 remotePort 13000 到 seg.example.com
[[proxies]]
name = "seg-frontend"
type = "tcp"
localIP = "frontend"
localPort = 80
remotePort = 13000
# --- 映射后端 API + WebSocket 端口 ---
# XXXX NPM 可反代公网服务器本机 remotePort 18000 到 seg-api.example.com并开启 WebSocket Support
[[proxies]]
name = "seg-backend"
type = "tcp"
localIP = "backend"
localPort = 8000
remotePort = 18000
# --- 映射 MinIO 图片/帧图/缩略图端口 ---
# XXXX NPM 可反代公网服务器本机 remotePort 19000 到 seg-minio.example.com
[[proxies]]
name = "seg-minio"
type = "tcp"
localIP = "minio"
localPort = 9000
remotePort = 19000