42 lines
1.4 KiB
TOML
42 lines
1.4 KiB
TOML
# =====================================================
|
||
# FRP Client (frpc) 設定
|
||
# 部署位置:UCG 內網機器(與 npm container 同網段)
|
||
# 對接目標:PVE VM 上的 frps(具備固定 IP)
|
||
# =====================================================
|
||
|
||
serverAddr = "your.vps.fixed.ip" # TODO: 填入 PVE VM 的固定 IP
|
||
serverPort = 7000 # 與 frps 的 bindPort 對應
|
||
|
||
# TLS 加密控制通道(與 frps 的 transport.tls.force = true 對應)
|
||
[transport]
|
||
tls.enable = true
|
||
|
||
# 連線驗證(需與 frps 的 auth token 相同)
|
||
[auth]
|
||
method = "token"
|
||
token = "your_strong_secret_token" # TODO: 改為強密碼,frps 端要一致
|
||
|
||
# -------------------------------------------------------
|
||
# HTTP (Port 80) → NPM
|
||
# -------------------------------------------------------
|
||
[[proxies]]
|
||
name = "npm-http"
|
||
type = "tcp"
|
||
localIP = "npm" # 同 frp_network 內直接用 container name
|
||
localPort = 80
|
||
remotePort = 80
|
||
|
||
# -------------------------------------------------------
|
||
# HTTPS (Port 443) → NPM
|
||
# -------------------------------------------------------
|
||
[[proxies]]
|
||
name = "npm-https"
|
||
type = "tcp"
|
||
localIP = "npm"
|
||
localPort = 443
|
||
remotePort = 443
|
||
|
||
# -------------------------------------------------------
|
||
# NPM 管理後台 (Port 81) 僅供內網存取,不對外 tunnel
|
||
# 請直接在內網透過 http://內網機器IP:81 登入
|
||
# ------------------------------------------------------- |