Skip to content

Instantly share code, notes, and snippets.

@j67678
Created April 12, 2018 00:55
Show Gist options
  • Save j67678/ec39c36fc5dab64f43cae6fa2b01f1bd to your computer and use it in GitHub Desktop.
Save j67678/ec39c36fc5dab64f43cae6fa2b01f1bd to your computer and use it in GitHub Desktop.
# 安装Caddy:
wget -N --no-check-certificate https://softs.fun/Bash/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager
# 配置Caddy:
echo ":80 {
gzip
proxy / https://www.google.com.hk
}" > /usr/local/caddy/Caddyfile
/etc/init.d/caddy restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment