Created: 2022-09-23 19:23 Modified: 2024-05-04 02:53
直接yay -S alist-bin
就好了
然后sudo systemctl enable--start alist
就可以在5244端口访问了
最后再配置一下反代
# /etc/nginx/conf.d/alist.conf
server{
listen 443 ssl;
server_name alist.tsaitang.com;
ssl_certificate "path/to/cert";
ssl_certificate_key "path/to/key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #表示使用的TLS协议的类型。
ssl_prefer_server_ciphers on;
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;
}
}