家庭网络,无80,443端口,全程使用FRP穿透,并且考虑到后期使用小程序,所有网址访问都需要用Https协议。
搭建环境介绍:
1.系统 Centos 7
2.部署方式 Docker
CentOS 7/8/9 / Ubuntu 20/22/24 / Debian 10/11/12 一键安装
url=https://static.itdos.com/install/install-microi.sh;if command -v curl >/dev/null 2>&1;then curl -fsSL -o install-microi.sh "$url";else wget -O install-microi.sh "$url";fi;sed -i 's/\r$//' install-microi.sh;bash install-microi.sh
3.部署过程
不是过程没什么可说的,都是按照自己需要选择,我选择是1、内网访问,2、mysql8.0,3默认的Docker网络,其他根据自己需求安装翻译等软件。
4.配置frp
serverAddr = "aly.frpee.com"
serverPort = 7000
user= "*******"
[[proxies]]
name ="Microi"
type = "https"
customDomains = ["oa.logkeep.cn"]
[proxies.plugin]
type = "https2http"
localAddr = "172.17.0.1:61600" # 修改为你的宿主机内网IP
crtPath = "/etc/frp/oa.pem"
keyPath = "/etc/frp/oa.key"
hostHeaderRewrite = "$host"
requestHeaders.set.X-Forwarded-Proto = "https"
[[proxies]]
name ="Microi-Api"
type = "https"
customDomains = ["api.logkeep.cn"]
[proxies.plugin]
type = "https2http"
localAddr = "172.17.0.1:61601" # 修改为你的宿主机内网IP
crtPath = "/etc/frp/api.pem"
keyPath = "/etc/frp/api.key"
hostHeaderRewrite = "$host"
requestHeaders.set.X-Forwarded-Proto = "https"
[[proxies]]
name ="Microi-Api-file"
type = "https"
customDomains = ["api.file.logkeep.cn"]
[proxies.plugin]
type = "https2http"
localAddr = "10.10.1.88:61605" # 修改为你的宿主机内网IP
crtPath = "/etc/frp/file.pem"
keyPath = "/etc/frp/file.key"
hostHeaderRewrite = "api.file.logkeep.cn"
requestHeaders.set.X-Forwarded-Proto = ""
之前给minio配置的无效。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END




