静看光阴荏苒
不管不顾不问不说也不念

NewVinagetScript:国外网盘中转站

最近在某个站上看到一些资源想下载下来,但是他把资源都传到一个国外的辣鸡网盘上了。。必须要充值买会员才能下载,那会员价格也是够坑爹的。。

然后我就去万能的某宝租了个号,意料之中的直接用国内网络下载的话速度慢的像坨翔,挂了个自己常用的梯子上去也就只有10M不到的速度。。

正好前段时间在gayhub上看到一个网盘中转站的项目正好支持这个辣鸡网盘,就想着搭建一下看看。

某网盘→→→直连国内网络→→→翔

某网盘→→→梯子1→→→一般

某网盘→→→梯子2→→→翔

某网盘→→→梯子2→→→梯子1→→→快

我的梯子1是套路云李家坡,梯子2是ikoula上次优惠的9.9欧,那么就在梯子2上安装这个程序就行了。实测效果还是不错的。

以下步骤使用的系统是Debian10。

首先安装apache2,如果不需要自动签发证书并配置ssl,可以不安装certbot:

apt -y update
apt -y install apache2 certbot python-certbot-apache git build-essential

安装php组件,注意这个程序需要用到mcrypt模块,但这个模块自php7.2起已被弃用,debian10官方存储库默认的php版本已经是7.3,所以官方存储库不再提供php-mcrypt这个包。

待会要借助pecl安装mcrypt,所以这里需要安装php7.3-dev以及libmcrypt-dev:

apt -y install php7.3-common php7.3-fpm \
php7.3-cli php7.3-gd php7.3-opcache \
php7.3-curl php7.3-mbstring \
php7.3-dev libmcrypt-dev libapache2-mod-php

使用pecl编译安装mcrypt:

pecl channel-update pecl.php.net
pecl install mcrypt-1.0.3

启用模块:

echo "extension=mcrypt.so" > /etc/php/7.3/mods-available/mcrypt.ini

拉取程序源码并给予正确的权限:

cd /var/www/
git clone https://github.com/ltt2801/new-vinaget-script.git
chown -R www-data:www-data /var/www/new-vinaget-script
chmod 777 data
chmod 666 data/account.dat
chmod 666 data/config.dat
chmod 666 data/cookie.dat
chmod 666 data/online.dat
chmod 666 data/log.txt
chmod 666 data/datafile_descrypt.html

编辑apache2的配置文件:

nano /etc/apache2/apache2.conf

找到下面这块,把AllowOverride后面的值改为All,目的是为了能够正常使用程序提供的.htaccess文件:

新建一个vhost:

nano /etc/apache2/sites-available/vinaget.conf

写入如下内容,其中ServerName换成你自己的域名:

测试配置是否正常:

apache2ctl configtest

启用伪静态(.htaccess)功能:

a2enmod rewrite

重启apache并设置开机自启:

systemctl restart apache2
systemctl enable apache2

启用刚才新建的vhost:

a2ensite vinaget.conf
systemctl reload apache2

如果要配置ssl执行下面的命令,一步步按提示走就行了:

certbot --apache

现在访问你的域名应该可以看到这个程序的管理员界面,自己按需设置一下:

然后点击account,添加你的网盘账号,格式必须是user:pass这样:

现在粘贴要下载的网盘地址就OK了:

之后进入ServerFiles即可看到文件,点击FileName即可开始下载:

这速度还是快很多了:

吐槽一哈某宝的JS,尼玛明明说好这账号可以用12h的,结果没到12h就登不了了。

赞(5)
未经允许不得转载:荒岛 » NewVinagetScript:国外网盘中转站
分享到: 更多 (0)

评论 20

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    uploadgig这冷门网盘没用过。一直本地Jdownloader挂代理,再不行梯子上装个Jdownloader,远程控制管理 my.jdownloader.org :!: :!:

    Kaku4年前 (2020-01-30) Firefox 72.0 Firefox 72.0 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • Jdownloader这个东西好像还不错的样子,又可以水一篇文章了 :cool:

      LALA4年前 (2020-02-01) Google Chrome 76.0.3809.132 Google Chrome 76.0.3809.132 Windows 10 x64 Edition Windows 10 x64 Edition回复
  2. #2

    重点是资源呐,资源,LALA你下什么资源呐 :oops:

    南黎4年前 (2020-01-30) Google Chrome 80.0.3970.5 Google Chrome 80.0.3970.5 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 学习资源,你信嘛 :arrow:

      LALA4年前 (2020-02-01) Google Chrome 76.0.3809.132 Google Chrome 76.0.3809.132 Windows 10 x64 Edition Windows 10 x64 Edition回复
  3. #3

    deepbrid 每天5个免费 支持uploadgig 不过我也没试过。。

    橘子4年前 (2020-02-01) Google Chrome 76.0.3809.90 Google Chrome 76.0.3809.90 Windows 10 Windows 10回复
    • 橘酱用着我的小鸡发表评论,倍感荣幸 :oops:

      LALA4年前 (2020-02-01) Google Chrome 76.0.3809.132 Google Chrome 76.0.3809.132 Windows 10 x64 Edition Windows 10 x64 Edition回复
      • 你瞧这只鸡他又粗又稳 :razz:

        橘子4年前 (2020-02-04) Google Chrome 76.0.3809.94 Google Chrome 76.0.3809.94 Windows 8 x64 Edition Windows 8 x64 Edition回复
        • 可以,这波赞美我接受。

          LALA4年前 (2020-02-06) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
  4. #4

    博主好,装好了,打开域名是Apache2 Debian Default Page 是什么原因?

    haofunny4年前 (2020-04-27) Google Chrome 81.0.4044.122 Google Chrome 81.0.4044.122 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 站点启用了么:a2ensite vinaget.conf
      或者把默认的站点关了试试:a2dissite 000-default.conf

      LALA4年前 (2020-04-27) Google Chrome 80.0.3987.163 Google Chrome 80.0.3987.163 Windows 10 x64 Edition Windows 10 x64 Edition回复
      • 感谢博主回答,小白还是不太懂,后来弄了宝塔搞成了。还想请教下,那个用户名密码如何设置(如果想给几个朋友用的话),另外好像连管理员密码都是暴露的(没法隐藏?)

        haofunny4年前 (2020-04-28) Google Chrome 81.0.4044.122 Google Chrome 81.0.4044.122 Windows 10 x64 Edition Windows 10 x64 Edition回复
        • 这个我记不太清了,好像是管理员密码和用户密码是分开的,输用户密码登录进去就是普通用户,输管理员密码登录进去就是管理员。

          LALA4年前 (2020-04-29) Google Chrome 81.0.4044.92 Google Chrome 81.0.4044.92 Windows 10 x64 Edition Windows 10 x64 Edition回复
          • 另外,请教下如果某个插件出错如何升级?貌似很多插件无法使用。它是整个程序一起升级还是插件单独升级?

            haofunny4年前 (2020-05-02) Google Chrome 81.0.4044.129 Google Chrome 81.0.4044.129 Windows 10 x64 Edition Windows 10 x64 Edition
          • 博主好,貌似现在这个网不能下那个网盘了,请问还有啥别的替代好介绍吗?

            haofunny4年前 (2020-06-05) Google Chrome 83.0.4103.97 Google Chrome 83.0.4103.97 Windows 10 x64 Edition Windows 10 x64 Edition
          • 那我得找找看。。

            LALA4年前 (2020-06-06) Google Chrome 80.0.3987.163 Google Chrome 80.0.3987.163 Windows 10 x64 Edition Windows 10 x64 Edition
          • 试了下TAO宝上中转代下的这个网盘中转超级、超级快(50M每秒大概),不知道那些JS用的啥项目脚本?大佬晓得么,请赐教,谢谢。

            haofunny4年前 (2020-06-09) Google Chrome 83.0.4103.97 Google Chrome 83.0.4103.97 Windows 10 x64 Edition Windows 10 x64 Edition
          • 可能是自己开发的,不过下载速度这个多方面因素都有影响的,他服务器带宽大速度快也很正常。

            LALA4年前 (2020-06-10) Google Chrome 80.0.3987.163 Google Chrome 80.0.3987.163 Windows 10 x64 Edition Windows 10 x64 Edition
  5. #5

    大佬,请问这个项目可以放到docker容器里面吗(容器化)

    haofunny4年前 (2020-06-18) Google Chrome 83.0.4103.106 Google Chrome 83.0.4103.106 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 当然是可以的,但是你得自己写Dockerfile。。

      LALA4年前 (2020-06-19) Google Chrome 81.0.4044.92 Google Chrome 81.0.4044.92 Windows 10 x64 Edition Windows 10 x64 Edition回复

分享创造快乐

广告合作资源投稿