Skip to content

Instantly share code, notes, and snippets.

@j67678
Last active August 4, 2019 13:36
Show Gist options
  • Save j67678/1616a10c309fef6df3399463f8a33e70 to your computer and use it in GitHub Desktop.
Save j67678/1616a10c309fef6df3399463f8a33e70 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:
mkdir -p /usr/local/caddy/www/file
echo ":80 {
root /usr/local/caddy/www/file
timeouts none
gzip
filemanager / /usr/local/caddy/www/file {
database /usr/local/caddy/filemanager.db
}
}" > /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