利用alist把百度网盘变成对象存储

官网

其实官方教程就挺全的:https://alist.nn.ci/zh/

一些三方教程

https://www.bilibili.com/read/cv19106579/
https://zhuanlan.zhihu.com/p/606183479?utm_id=0
https://www.bilibili.com/video/BV1iA411o7rW

aria2安装教程

用于破解百度限制20MB
https://zhuanlan.zhihu.com/p/624623677

nginx代理

# alist.dingshaohua.com
server {
    listen       80;
    server_name  alist.dingshaohua.com;
    rewrite ^(.*) https://$server_name$1 permanent;
}
server {
    listen       443 ssl;
    server_name  alist.dingshaohua.com;

    ssl_certificate /etc/letsencrypt/live/dingshaohua.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/dingshaohua.com/privkey.pem;

    ssl_session_cache    shared:SSL:1m;
    ssl_session_timeout  5m;
    ssl_ciphers  HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers  on;

    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://0.0.0.0:5244;
        client_max_body_size 20000m;
    }
    
    # location / {
    #     root   /home/temp;
    #     try_files $uri $uri/ /index.html;
    # }

}
posted @ 2023-09-11 17:38  丁少华  阅读(602)  评论(3)    收藏  举报