一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。

#安装
默认安装在 /opt/alist 中,如 安装到 /root:
# Install
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install /root
# update
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s update /root
# Uninstall
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s uninstall /root

##管理

启动: systemctl start alist
关闭: systemctl stop alist
状态: systemctl status alist
重启: systemctl restart alist

#nginx反向代理
在网站配置文件的 server 字段中添加

location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
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;
# the max size of file to upload
client_max_body_size 20000m;
}
如果需要使用HTTP/3,需要将对应HOST行修改为:

proxy_set_header Host $host:$server_port;

##添加存储 示例onedrive
首先打开 https://alist.nn.ci/tool/onedrive/request
选择对应配置,点解获取token 按提示操作即可

以上 OωO 欢迎访问本下载站 使用alist搭建

[1]: https://github.com/alist-org/alist