This commit is contained in:
ChenKaiLiuG
2026-02-28 04:38:23 +08:00
parent 12773633ce
commit 997d078b64
14 changed files with 722 additions and 56 deletions

View File

@@ -0,0 +1,23 @@
# =====================================================
# FRP Server (frps) 設定
# 部署位置PVE VM具備固定 IP
# =====================================================
bindPort = 7000 # 與 frpc 的 serverPort 對應
# TLS 加密控制通道(強制要求 frpc 必須使用 TLS 連線)
[transport.tls]
force = true # 拒絕所有非 TLS 的 frpc 連線
# 連線驗證(需與 frpc 的 token 相同)
[auth]
method = "token"
token = "your_strong_secret_token" # TODO: 改為強密碼,需與 frpc.toml 一致
# Dashboard可選
# 若要啟用 frps web 管理介面,取消下方註解
# [webServer]
# addr = "0.0.0.0"
# port = 7500
# user = "admin"
# password = "your_dashboard_password"

View File

@@ -0,0 +1,17 @@
version: "3.9"
services:
frps:
image: snowdreamtech/frps:latest
container_name: frps
restart: unless-stopped
ports:
- "80:80" # HTTP → 轉給內網 NPM
- "443:443" # HTTPS → 轉給內網 NPM
- "7000:7000" # frpc 控制通道(建議用防火牆限制來源 IP
volumes:
- /opt/frp/frps.toml:/etc/frp/frps.toml:ro
networks:
default:
driver: bridge