Baota Panel installs the modified version of OLAINDEX, and uses Aria2 to download resources and automatically upload them to OneDrive

Baota Panel installs the modified version of OLAINDEX, and uses Aria2 to download resources and automatically upload them to OneDrive

1. Features of the modified version of OLAINDEX :

1. Multiple Onedrive accounts support:
Multiple Onedrive network disk images can be mounted at the same time. You can choose to upload to different disk areas. Multiple network disk commands are supported. International version/21Vianet is also supported.

2. Get all download links with one click (all files can be downloaded with AriaNg)
Image hosting: add copy link, fix upload failure issue
Ajax delete file open source address: https://github.com/YukiCoco/OLAINDEX-Magic

2. Install the Pagoda panel and set up the relevant environment

The following operations are based on Centos7 64bit.
1. Install the pagoda panel

 yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

2. After installation, install Ngnix (or Apache), PHP7.2

3. Install PHP extension fileinfo

4. Disable several disabled functions of PHP: exec, putenv, shell_exec, proc_open, proc_get_status

5. Finally, restart the server

3. Install and configure OLAINDEX

1. Create a new site, such as lowvps.cn

2. Get OLAINDEX and initialize it

Under SSH, enter the website directory, such as /www/wwwroot/zhujiwiki.com

 git clone https://github.com/YukiCoco/OLAINDEX-Magic.git tmp mv tmp/.git . rm -rf tmp git reset --hard cp database/database.sample.sqlite database/database.sqlite composer install -vvv chmod -R 755 storage/ chown -R www:www * php artisan od:install

3. Set the website directory to /public, select Laravel5 for pseudo-static, enable SSL, and delete the configuration file

 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; error_log off; access_log off; } location ~ .*\.(js|css)?$ { expires 12h; error_log off; access_log off; }

4. OneDrive Settings

1. Bind and use multiple accounts to log in to Azure: https://portal.azure.com/ (International) or https://portal.azure.cn/ (21Vianet)
Click Azure Active Directory
Click on App Registration. Click on New Registration. You can choose any name you want. Fill in the redirect_uri displayed on your page as the redirect URL.

redirect_uri is set to your domain/oauth

2. Add API permissions and open all permissions under Files. Enter the registered application page, select and set API

3. client_id and client_secret
Click Overview and copy the Application (Client) ID (client_id)
Click Certificates and Secrets to add a new client secret and copy it (client_secret)

5. Install Aria2

 wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh

Related command startup: /etc/init.d/aria2 start
Stop: /etc/init.d/aria2 stop
Restart: /etc/init.d/aria2 restart
Check the status: /etc/init.d/aria2 status
Configuration file: /root/.aria2/aria2.conf (The configuration file contains Chinese comments, but some systems may not support displaying Chinese)
Token key: randomly generated (can be modified by yourself 7. Modify the configuration file)
Default download directory: /root/Download

6. Configure automatic upload and other related

1. Install curl

 yum install curl

2. Create the success.sh file in the /root/.aria2 directory
token is the password of Aria, url is the root domain name of the network disk

 #!/bin/sh #修改下列內容path=/root/Download token=51b2b478586eb063862b url=https://onedrive.test time=7200 #最長上傳時間#修改到這里完成! gid=$1 payload=${url}/admin/offlinedl/upload/${token}/$1 chmod -R 777 $path curl $payload -m ${time}

3. Add the following to the Aria2 configuration file:

 on-download-complete=/root/.aria2/success.sh

4. Set relevant permissions

 chmod +x /root/.aria2/success.sh chmod 777 /root

5. Restart Aria2

 /etc/init.d/aria2 restart

6. In the background of the network disk, add the Aria2 password, and then you can happily use offline downloads.

<<:  iplclink: 10 yuan/month/128MB memory/3GB space/10GB traffic/200Mbps port/NAT/OpenVZ/Shenzhen-Hong Kong IPLC

>>:  Backovia: $13/month/1GB memory/1TB space/5TB traffic/1Gbps port/KVM/US/Europe

Recommend

Redhat launched a stable free space - Openshitf

OpenShift is a platform as a cloud service (PaaS)...

HostWithLinux: $5/month/512MB RAM/25GB SSD/1.5TB bandwidth/KVM/Hong Kong

HostWithLinux has launched a new package KVM VPS,...

10g.biz 512MB RAM 10Mbps Unlimited Bandwidth Los Angeles CN2 GIA KVM VPS Review

Details : 10g.biz: $2.36/month/512MB RAM/30GB SSD...

ITLDC 1GB RAM Ukraine KVM VPS Review

Details: ITLDC: €2.1/month/1GB RAM/10GB SSD space...

Sharktech: $95/year/512MB RAM/40GB storage/unlimited traffic/KVM/Los Angeles

Sharktech, a long-established American hosting pr...

Wired Blade: $5/month/2GB RAM/20GB NVMe space/1TB bandwidth/1Gbps/KVM/Phoenix

Wired Blade is a long-established American hostin...