Skip to content

onedrive app 自定义挂载路径

Latest
Compare
Choose a tag to compare
@yzbtdiy yzbtdiy released this 28 Mar 12:36
  • fdde09e add mount path string for onedrive app

配置文件 config.yaml 字段:

onedrive_app:
    enable: true
    region: global
    tenants:
        - id: 1
          client_id: CLIENT_ID
          client_secret: CLIENT_SECRET
          tenant_id: TENANT_ID
        - id: 2
          client_id: CLIENT_ID
          client_secret: CLIENT_SECRET
          tenant_id: TENANT_ID

默认onedrive_app 为禁用状态, 启用请修改 enable 为 true
可以添加多个 tenant(数组类型, 使用 - 符号) 相关参数请参考 alist 文档获取
https://alist.nn.ci/zh/guide/drivers/onedrive_app.html

修改 onedrive_app.yaml 格式, 与其他网盘 yaml 格式保持一致

分类1:
    挂载1: 1:[email protected]
    挂载2: 1:[email protected]:/folder1
    挂载3: 1:[email protected]:/folder2

挂载字符串格式为 1:邮箱:/目录
1 对应 config.yaml 中的 tenants 中 id 为 1 的 tenant, 依次类推