Files
docker_stack/karylab-entrance/config/frpc.toml
ChenKaiLiuG 997d078b64 Add FRP
2026-02-28 04:38:23 +08:00

42 lines
1.4 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.
# =====================================================
# FRP Client (frpc) 設定
# 部署位置UCG 內網機器(與 npm container 同網段)
# 對接目標PVE VM 上的 frps具備固定 IP
# =====================================================
serverAddr = "45.64.97.4" # 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 登入
# -------------------------------------------------------