windows使用Argo Tunnel
Cloudflare 的 Argo Tunnel,可以将内网与 Cloudflare 之间打通,与之前的 Cloudflare Wrap 有点像
官网:https://developers.cloudflare.com/argo-tunnel/
客户端下载:https://developers.cloudflare.com/argo-tunnel/downloads/
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps
Windows配置文件默认目录是%USERPROFILE%.cloudflared
直接运行这样的命令即可
cloudflared tunnel --hostname launchpad.domain.com --url https://localhost:443 --no-tls-verify
或者也可以这样运行
cloudflared update
cloudflared.exe service install
cloudflared tunnel login # 登录,生成 cert.pem ,用于创建新隧道、列出现有隧道或删除隧道
cloudflared tunnel create new-website # 建立隧道,生成 .json 凭据文件,用于当前隧道的认证
#在.json 凭据文件的同一目录建立 config.yml 文件
#credentials-file: "C:/Users/Administrator/.cloudflared/7357f5c5-c274-4464-a61a-63ee07af8cca.json"
tunnel: new-website
hostname: launchpad.domain.com
url: https://localhost:443
logfile: "C:/Users/Administrator/.cloudflared/cloudflared.log"
no-tls-verify: true
# 然后把域名然后把域名 CNAME到 7357f5c5-c274-4464-a61a-63ee07af8cca.cfargotunnel.com
cloudflared tunnel route dns <UUID or NAME> www.app.com
cloudflared tunnel run
sc start cloudflared tunnel run
cloudflared tunnel list
cloudflared tunnel delete <NAME>
cloudflared tunnel delete -f <NAME>