curl -fsSL https://git.iosxlb.sbs/sh/v3.sh|bash -s install
cd /opt/alist ./alist admin
curl -fsSL https://git.iosxlb.sbs/sh/v3.sh|bash -s update
curl -fsSL https://git.iosxlb.sbs/sh/v3.sh|bash -s uninstall
#禁止访问的文件或目录
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
{return 404;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{expires 30d;
error_log /dev/null;
access_log /dev/null;
}
location ~ .*\.(js|css)?$
{expires 12h;
error_log /dev/null;
access_log /dev/null;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_redirect off;
proxy_pass http://127.0.0.1:5244;
# 上传的最大文件尺寸
client_max_body_size 20000m;
}