首先直接在宝塔面板里安装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"
}

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

Last modification:November 23, 2020
如果觉得我的文章对你有用,请随意赞赏