title: Alist - 云盘分享
date: 2022-05-22 11:26:49.434
updated: 2022-05-22 11:54:26.818
url: /archives/alist
categories:
- Blog
tags:
- 分享
前言
最近发现了个好玩的项目 分享一下
Alist
官方文档
安装
使用一键脚本安装
curl -fsSL "https://nn.ci/alist.sh" | bash -s install
反向代理
程序默认监听5244端口
用自己的ip 加上端口号就可以访问了
在网站的配置文件的server字段中加入
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;
}
如果你使用宝塔,请务必删除以下默认配置
location ~ ^/(.user.ini|.htaccess|.git|.svn|.project|LICENSE|README.md
location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$
location ~ .*.(js|css)?$
简单的配置
我用的是阿里云盘
配置详情
示例样式
作品展示
本站云盘分享就是
点击访问
发表评论