构建环境:hklcf/debian-ssh-docker

预配置:


apt-get update -y && apt-get upgrade -y && apt-get install wget -y

一键安装:


wget -O install-Aria2-OneIndex.sh https://github.com/798886844/download/raw/master/install-Aria2-OneIndex.sh && bash install-Aria2-OneIndex.sh

安装过程中会提示输入AriaNG的RPC密钥,输入回车即可。

安装完成后:


#   OneIndex地址:  http://ip:80

#   Aria2Ng前端地址:http://ip:81

#   FileBrowser地址:  http://ip:82

在根目录下执行:


onedrive -a

显示:

Please open the following URL in your browser and follow the steps until you see a blank page:

https://login.microsoftonline.com/common/oauth2/authorize?response_type=code&client_id=ea2b36f6-b8ad-40be-bc0f-e5e4a4a7d4fa&redirect_uri=http://localhost/onedrive-login

When ready, please enter the value of the code parameter (from the URL you have been redirected) and press return

复制显示的链接,在浏览器中打开,登陆账号,将跳转之后的链接中的Code内容复制粘贴到SSH终端中,回车,提示:

It seems like we have a refresh tocken, so we are ready to go.

即自动上传配置成功。

相关文件位置:

OneIndex根目录:/home/wwwroot/oneindex

Aria2Ng根目录:/home/wwwroot/aria2ng

Aria2配置文件夹:/root/.aria2

Aria2下载目录:/root/Download

OneDrive自动上传脚本: /usr/local/etc/OneDrive

Nginx 配置文件地址:/etc/nginx/conf.d