feat(frp): 远程访问一键部署脚本(frpc+mihomo分流DNS) + 配置模板;文档标执行中

This commit is contained in:
wangjia
2026-07-15 00:53:56 +08:00
parent 67c02458c2
commit 9aa5edbdef
6 changed files with 274 additions and 3 deletions
+8
View File
@@ -0,0 +1,8 @@
services:
frpc:
image: snowdreamtech/frpc:0.70.0
container_name: frpc
network_mode: host # 需直达 127.0.0.1 各服务 + 192.168.3.88Windows
restart: unless-stopped
volumes:
- ./frpc.toml:/etc/frp/frpc.toml:ro
+49
View File
@@ -0,0 +1,49 @@
# 复制为 frpc.toml 并把 token 换成真值(Bitwarden「frp home-tunnel」)。
# frpc.toml 含密钥,不入 git(部署由 scripts/setup-frp-remote.sh 自动完成)。
serverAddr = "103.119.13.48" # pangolin1frps
serverPort = 7000
auth.method = "token"
auth.token = "<Bitwarden: frp home-tunnel>"
transport.tls.enable = true
[[proxies]]
name = "git-ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 2222
remotePort = 2222
[[proxies]]
name = "git-web"
type = "tcp"
localIP = "127.0.0.1"
localPort = 3000
remotePort = 3000
[[proxies]]
name = "dsm"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5001
remotePort = 5001
[[proxies]]
name = "nas-ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 10022
[[proxies]]
name = "win-rdp"
type = "tcp"
localIP = "192.168.3.88"
localPort = 3389
remotePort = 3389
[[proxies]]
name = "win-ssh"
type = "tcp"
localIP = "192.168.3.88"
localPort = 22
remotePort = 10023