Rat's

VPS使用GDList挂载Google Drive和OneDrive网盘,支持多个同时挂载
简介GDList可以将Google Drive和OneDrive分享出的文件夹ID挂载成网盘。即使你没网盘也没关系...
扫描右侧二维码阅读全文
19
2018/04

VPS使用GDList挂载Google Drive和OneDrive网盘,支持多个同时挂载

简介

GDList可以将Google DriveOneDrive分享出的文件夹ID挂载成网盘。即使你没网盘也没关系。还不占服务器空间,不消耗服务器流量;可多个Google DriveOneDrive同时挂载到网盘;支持直链下载、在线预览(图片、视频、音频)。

Github地址:https://github.com/reruin/gdlist

截图

请输入图片描述
请输入图片描述

更新

支持OneDrive、OpenLoad、Lanzou蓝奏云、天翼云网盘、GoogleDrive等挂载

脚本安装

系统要求:CentOSDebianUbuntu

运行命令:

#Debian/Ubuntu系统
apt-get -y install git

#CentOS/RHEL系统
yum -y install git

#下载源码安装
git clone https://github.com/reruin/sharelist.git
cd sharelist && bash install.sh

完成后,访问http://ip:33001,进入界面开始设置,记住网盘文件夹要共享一下,不然会出现500错误。
请输入图片描述

关于很多人说的不显示问题,博主试了下是没问题的,注意输入的ID,添加后记得清空缓存。

#Google Drive
分享链接一般是https://drive.google.com/drive/folders/xxxx?usp=sharing,则ID为xxxx。
#OneDrive
分享链接一般是https://1drv.ms/f/xxxx,则ID为xxxx。

Docker安装

1、安装Docker和Docker Compose

#安装Docker
curl -sSL https://get.docker.com/ | sh
service docker start
#安装Docker Compose
curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

2、安装GDLIST

#Debian/Ubuntu系统
apt-get -y install git

#CentOS/RHEL系统
yum -y install git

#安装GDLIST
git clone https://github.com/reruin/gdlist.git
cd gdlist
docker-compose up -d

最后访问http://IP:33001即可。

添加域名SSL

如果想用域名查看的,可以用Caddy反代,并自动添加SSL证书。首先需要解析一个域名到服务器上。

安装Caddy

wget -N --no-check-certificate https://raw.githubusercontent.com/iiiiiii1/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.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

编辑配置文件

#以下全部内容是一个整体,修改域名、IP、邮箱后一起复制到SSH运行!
echo "https://xx.com {
 tls admin@moerats.com
 proxy / 111.111.111.111:33001 {
    header_upstream Host {host}
    header_upstream X-Real-IP {remote}
    header_upstream X-Forwarded-For {remote}
    header_upstream X-Forwarded-Port {server_port}
    header_upstream X-Forwarded-Proto {scheme}
  }
 log /var/log/caddy.log
 gzip
}" > /usr/local/caddy/Caddyfile

启动Caddy

/etc/init.d/caddy restart

最后就可以通过域名https访问了。

相关教程

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。
最后修改:2020 年 05 月 09 日 12 : 19 AM

发表评论 取消回复

53 条评论

  1. xiaow

    gd用这个程序列出来在线访问需要翻Q?

    1. Rat's
      @xiaow

      我好像忘了要不要梯子了,貌似列出来不要,下载访问要

  2. yiranzhimo

    大佬好,在配置过程中出现了一个问题,显示:NOT Found,我想问一下,如何卸载重新安装?
    谢谢大佬的解答。

    1. Rat's
      @yiranzhimo

      试试这个命令,pm2 kill删掉进程,然后删掉github源码,sharelist

      1. yiranzhimo
        @Rat's

        搞定了,rm -rf sharelist

  3. kids

    centos 显示sharelist is installing ,等了很长时间,没有反应,不知道什么情况。

    1. kids
      @kids

      可以了~ 等了半个小时。。

  4. 灯火阑珊

    装了BBR加速后,在线播放视频的速度有明显提升。但是过几个小时后又变得极慢。不知道是VPS原因还是谷歌网盘那边的原因。

    1. Rat's
      @灯火阑珊

      看是不是被谷歌限制了速度。

  5. 还行

    一个文件夹页面下只能显示50个列表。。更多的文件不会显示出来
    我不知道该怎么操作。

    1. Rat's
      @还行

      这个貌似我也不是很清楚。

  6. 灯火阑珊

    错误提示如图
    https://i.loli.net/2019/01/06/5c318449547d7.png

    1. Rat's
      @灯火阑珊

      这个关掉你的ipv6连接就行了,你没ipv6可是解析别人网站的时候是连接的ipv6,所以报错。

  7. 1766146339

    可以远程帮忙弄一下不。我快崩溃了

    1. Rat's
      @1766146339

      哪里有问题?

  8. 灯火阑珊

    使用一键脚本在centos6、7上面安装成功后无法访问ip:33001
    这是脚本更新后出现的状况。

    1. Rat's
      @灯火阑珊

      已替换成作者的脚本,有问题再留言。

    2. 灯火阑珊
      @灯火阑珊

      说错了,这是程序更新后出现的状况。

      1. Rat's
        @灯火阑珊

        我检查下。

  9. 老几

    用宝塔怎么弄呢?感恩。

    1. Rat's
      @老几

      用宝塔的话,一言难尽,可以用docker安装,然后再用域名反代端口,反代可以参考https://www.moerats.com/archives/739/的绑定域名步骤。

  10. LY

    这个错误怎么解决呀 本来可以打开的,突然这样了,中一键包重装了还是这样
    Error
    Looks like something broke!
    TypeError: Cannot read property 'replace' of undefined

    at encode (/app/utils/format.js:98:12) at data.children.forEach (/app/controllers/sharelist.js:49:58) at Array.forEach (<anonymous>) at index (/app/controllers/sharelist.js:47:23) at <anonymous>

    如果不能解决能卸载掉吗

    1. Rat's
      @LY

      这东西很久没研究过了,可以重装系统卸载。