修改宝塔面板中OneDrive备份插件支持世纪互联

文章目录[隐藏]

前言

宝塔最近出了那么多问题,我也在考虑要不要继续用了....所以请不要再吐槽了——“正经人谁用宝塔呀?下贱!”
不过话说回来宝塔的确是方便,这个修改我已经用了小半年了,没啥毛病,看到有人问就分享出来。

开始教程

首先直接在宝塔面板里安装OneDrive的插件模块,这个就不用多说了吧?
然后修改/www/server/panel/plugin/msonedrive/credentials.json这个文件,案例:



{

  "client_id": "这里改成自己的client_id",

  "client_secret": "这里改成自己的client_secret",

  "authority": "https://login.chinacloudapi.cn/common",

  "token_endpoint": "/oauth2/v2.0/token",

  "authorize_endpoint": "/oauth2/v2.0/authorize",

  "scopes": "offline_access Files.ReadWrite.All User.Read",

  "redirect_uri": "http://localhost",

  "api_uri": "https://microsoftgraph.chinacloudapi.cn/v1.0"

}

然后回到宝塔插件里授权即可。


This article is under CC BY-NC-SA 4.0 license.
Please quote the original link:https://www.liujason.com/article/1100.html
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy