文章目录[隐藏]
Rclone大家都很熟悉了,就不在介绍了
重点介绍Oneindex,它可以实现不用服务器空间,不走服务器流量,直接列onedrive目录,文件直链下载。及在线播放,文件加密功能,这样哪怕是空间,都不用耗流量进行下载(本质来说是一个将OneDrive中文件提取分享链接的原理)。
一、挂载(不需要离线下载就不需要这一步)
安装Rclone
apt-get install fuse wget https://downloads.rclone.org/rclone-current-linux-amd64.zip unzip rclone-current-linux-amd64.zip chmod 0777 ./rclone-*/rclone cp ./rclone-*/rclone /usr/bin/ rm -rf ./rclone-*
配置
rclone config
(和Gdrive不同的是)需要本地电脑点一下Key,具体百度
二、安装OneIndex
1、Github地址 https://github.com/donwa/oneindex
2、设置权限,直接上传到空间目录即可
3、伪静态配置:
location / { index index.html index.php; if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } }
然后修改 config/base.php:
'root_path' => '?' 改为 'root_path' => ''
图片测试速度:
- Line群组
- 阔乐博客Line群了解一下
-
- Telegram群组
- Telegram群了解一下
-
评论