骚!如何用Caddy反代实现上谷歌!

在"如何使用Caddy域名反代"中我介绍了如何用Caddy反代端口,可是我没意识到,竟然可以反代谷歌...


  /$$$$$$                  /$$       /$$          
 /$$__  $$                | $$      | $$          
| $$  \__/  /$$$$$$   /$$$$$$$  /$$$$$$$ /$$   /$$
| $$       |____  $$ /$$__  $$ /$$__  $$| $$  | $$
| $$        /$$$$$$$| $$  | $$| $$  | $$| $$  | $$
| $$    $$ /$$__  $$| $$  | $$| $$  | $$| $$  | $$
|  $$$$$$/|  $$$$$$$|  $$$$$$$|  $$$$$$$|  $$$$$$$
 \______/  \_______/ \_______/ \_______/ \____  $$
                                         /$$  | $$
                                        |  $$$$$$/
                                         \______/ 

1.安装Caddy
由于脚本在Github,所以国内可能会慢一点

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager

2.CaddyFile

https://google.com {
 gzip
 tls /(SSL证书).crt /(秘钥).key
 proxy / https://(域名)
}
https://youtube.com {
 gzip
 tls /(SSL证书).crt /(秘钥).key
 proxy / https://(域名)
}
https://gmail.com {
 gzip
 tls /(SSL证书).crt /(秘钥).key
 proxy / https://(域名)
}

评论区


选择表情

鑫诚QQ代刷网37zxxJ.png牙卖咯可大赛的博客Smilear's Blog
© [2020] · Powered by kjundada