自用 Frp 配置文档

FRPC 配置文档

serverAddr = "IP"
serverPort = 端口

auth.method = "token"
auth.token = "密钥"

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000

## HTTP 配置
[[proxies]]
name = "ake_http"
type = "http"
localPort = 80
customDomains = ["*.ake.cx"]

## HTTPS 配置
#[[proxies]]
# name = "ake_https"
# type = "https"
# customDomains = ["*.ake.cx"]
# [proxies.plugin]
# type = "https2http"
# localAddr = "127.0.0.1:80"
## HTTPS 证书相关的配置
# crtPath = "/root/ssl/*_ake_cx/fullchain.pem"
# keyPath = "/root/ssl/*_ake_cx/privkey.pem"
# hostHeaderRewrite = "127.0.0.1"

Frps 配置文档

bindAddr = "0.0.0.0"
bindPort = 端口

auth.method = "token"
auth.token = "密钥"

webServer.addr = "0.0.0.0"
webServer.port = 端口
webServer.user = "账号"
webServer.password = "密码"

vhostHTTPPort = 8080
vhostHTTPSPort = 8443
# tls
#transport.tls.force = true
#transport.tls.certFile = "/etc/frp/ssl/server.crt"
#transport.tls.keyFile = "/etc/frp/ssl/server.key"
#transport.tls.trustedCaFile = "/etc/frp/ssl/ca.crt"