Created
April 11, 2018 09:39
-
-
Save j67678/8d793f7ff938d1ef9857326e8b4c77a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 安装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: | |
mkdir -p /usr/local/caddy/www/file | |
echo ":80 { | |
root /usr/local/caddy/www/file | |
browse | |
timeouts none | |
gzip | |
}" > /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