宝塔和 1Panel需要通过docker方式安装好frps服务器版本,群晖
要安装好frps客户端。没什么难度,障碍是国内墙了镜像源,必
须寻找能用的加速镜像。目前frp的Version0.61.0
一:宝塔面板安装成功如下:
https://img.cyoy.cn/hexo/emlog/https://img.cyoy.cn/hexo/emlog/

如果需要修改配置,“Docker”的"应用商店“已安装”中直接点“进入安装目录”,
找到data目录下的frps.toml,直接在宝塔中右键编辑它。
bindAddr = "0.0.0.0"
bindPort = 7000
vhostHTTPPort = 7080
vhostHTTPSPort = 7081
auth.method = "token"
auth.https://img.cyoy.cn/hexo/emlog/https://img.cyoy.cn/hexo/emlog/
webServer.addr = "0.0.0.0"
https://img.cyoy.cn/hexo/emlog/https://img.cyoy.cn/hexo/emlog/
webServer.port = 7500
webServer.user = "dd"
webServer.password = "ddd"https://img.cyoy.cn/hexo/emlog/https://img.cyoy.cn/hexo/emlog/
在浏览器中输入 http://宝塔面板IP:7500/ 就能看到下图就OK了。
原网页是英文,这是浏览器翻译的页面。

在宝塔“网站”新建一个传统项目的网站,数据库ftp等都不需要,php纯静态就行。
绑定好需要https://img.cyoy.cn/hexo/emlog/反向代理,如图:https://img.cyoy.cn/hexo/emlog/
这是halo.yocn.net也就是群晖Nas上的halo2配置:
二:群晖Nas配置:
登录群晖后台,下载套件中心-社群里矿神的Frpc客户端:
serverAddr = "11.11.11.11"
https://img.cyoy.cn/hexo/emlog/https://img.cyoy.cn/hexo/emlog/
serverPort = 7000
auth.method = 'token'
auth.token = "dddd.."
[[proxies]]
name = "web_xp_http"
type = "http"
localPort = 66
customDomains = ["nas.xxx.com"]
[[proxies]]
name = "web_xp_http"
type = "http"
localPort = 88
customDomains = ["aa.aa.cn"]其中66 88都是nas上web网站的端口号。从此就可以输入 http://nas.xxx.com
这种方式来打开原来需要 http://xxx.com:88 加端口的烦人网址了
二:1Panel面板配置:
首先在应用商店里安装frp服务端,再在已安装里找到这个frps,点“进入安装目录”,
双击data/frps.toml进行编辑,代码如下:
bindAddr = "0.0.0.0"
bindPort = 7000
vhostHTTPPort = 7080
vhostHTTPSPort = 7081
auth.method = "token"
auth.token = "Myisjrrdb01"
webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "....."
webServer.password = "......."特别是下面这两段代码默认1Panel安装frps时就没用的,需要手动加上。
vhostHTTPPort = 7080
vhostHTTPSPort = 7081以上代码中的serveraddr以及用户名和密码修改为自己的服务器信息。
对应的群晖套件中需要修改配置:
serverAddr = "154.64.24.15"
serverPort = 7000
auth.method = 'token'
auth.token = "token123456"
[[proxies]]
name = "web_xp_http"
type = "http"
localPort = 99
customDomains = ["halo.xxx.com"]



