在线挂载 GoogleDrive、OneDrive 的简易工具 , 只需提供分享文件夹ID。
- 支持使用GD,OD文件夹ID挂载网盘
- 支持列出本地目录
统一使用linux的路径,例如 windows D盘 为
/d/
- 自定义文件目录
可使用yaml构建目录内容,保存为
目录名.xd
。参考example/download.xd
。 - 支持虚拟目录嵌套
以如下格式重命名文件夹
格式:显示名称.文件夹id.类型
类型支持 od(OneDrive) gd(GoogleDrive) - 加密目录
在文件夹内新建.密码.passwd
命名的文件即可,例如.123456.passwd
不要省略最前方的.
- GoogleDrive目录内文件过多时无法完全显示,也无法分页。
wget https://www.moerats.com/usr/shell/GDList.sh #这里借用moerats的脚本,教程参考https://www.moerats.com/archives/593/
bash GDList.sh
wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager
编辑配置文件
#以下全部内容是一个整体,修改域名、IP、邮箱后一起复制到SSH运行!
echo "https://xx.com {
tls <your e-mail>
proxy / <your-ip-address>:33001 {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
log /var/log/caddy.log
gzip
}" > /usr/local/caddy/Caddyfile
启动Caddy
/etc/init.d/caddy restart
访问 <your-domain>