新建空白网站并且申请好证书
然后将网站配置文件删除
#禁止访问的文件或目录
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 Hosthttp_host;
proxy_set_header X-Real-IP remote_addr;
proxy_set_header Rangehttp_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;
}
然后安装
curl -k -fsSL "https://alist.nn.ci/v3.sh" | bash -s install /www/wwwroot/cloud.github.com
Comments | NOTHING