{"id":15356677,"url":"https://github.com/lisonge/aliyun-onedrive-severless","last_synced_at":"2025-04-15T06:41:59.365Z","repository":{"id":161598647,"uuid":"300889166","full_name":"lisonge/aliyun-onedrive-severless","owner":"lisonge","description":"阿里云函数onedrive index后端代理，使用github actions部署","archived":false,"fork":false,"pushed_at":"2021-05-19T14:28:02.000Z","size":368,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-15T06:41:53.814Z","etag":null,"topics":["aliyun","aliyun-oss","onedrive","oneindex","severless","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lisonge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-03T13:40:29.000Z","updated_at":"2024-02-20T07:02:31.000Z","dependencies_parsed_at":"2023-05-22T05:15:14.977Z","dependency_job_id":null,"html_url":"https://github.com/lisonge/aliyun-onedrive-severless","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":"0.023255813953488413","last_synced_commit":"0a67ac2b667e446b2e933690646cb990da4e0975"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisonge%2Faliyun-onedrive-severless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisonge%2Faliyun-onedrive-severless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisonge%2Faliyun-onedrive-severless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisonge%2Faliyun-onedrive-severless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lisonge","download_url":"https://codeload.github.com/lisonge/aliyun-onedrive-severless/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023725,"owners_count":21199958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliyun","aliyun-oss","onedrive","oneindex","severless","typescript"],"created_at":"2024-10-01T12:29:34.498Z","updated_at":"2025-04-15T06:41:59.348Z","avatar_url":"https://github.com/lisonge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n * @Date: 2020-10-04 17:24:47\n * @LastEditors: lisonge\n * @Author: lisonge\n * @LastEditTime: 2020-10-07 13:37:11\n--\u003e\n\n# aliyun-onedrive-severless 该项目正在升级,以更简单规范的方式去实现\n\n阿里云函数版 ondrive-index **后端代理访问**\n\n使用 github actions 一键部署\n\n## 准备\n\n### Aliyun\n\n\u003cdetails\u003e\n\n\u003csummary\u003eaccountId\u003c/summary\u003e\n\n在[账号管理-安全设置](https://account.console.aliyun.com/#/secure) 账号 ID 在头像右侧第二行文字\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n\u003csummary\u003eaccessKeyId accessKeySecret\u003c/summary\u003e\n\n方式 1: 在[RAM 访问控制 - AccessKey 管理](https://ram.console.aliyun.com/manage/ak) 创建 AccessKey\n\n方式 2: 在[RAM 访问控制 - 用户](https://ram.console.aliyun.com/users/new) 创建子用户, 随意填写登录名及显示名，勾选编程访问，点击创建, 添加权限[AliyunFCFullAccess, AliyunOSSFullAccess]\n\n\u003c/details\u003e\n\n### Onedrive\n\n\u003cdetails\u003e\n\u003csummary\u003erefresh_token\u003c/summary\u003e\n\n在[graph-auth-pages](https://dev.songe.li/aliyun-onedrive-severless/graph-auth-pages/index.html)获取授权令牌\n\n\u003c/details\u003e\n\n## 部署\n\n首先 Fork 本项目, 在新项目的 Action 界面有两种部署方式, 以下操作在 Fork 的新项目界面进行\n\n### 通过 Inputs\n\n进入[Actions deloy-by-inputs](../../actions?query=workflow%3Adeloy-by-inputs), 点击右侧**Run workflow**输入对应信息\n\n| 输入名                   | 输入值          |\n| ------------------------ | --------------- |\n| ALIYUN_ACCOUNT_ID        | accountId       |\n| ALIYUN_ACCESS_KEY_ID     | accessKeyId     |\n| ALIYUN_ACCESS_KEY_SECRET | accessKeySecret |\n| ONEDRIVE_REFRESH_TOKEN   | refresh_token   |\n\n然后点击右侧**Run workflow**可部署此项目\n\n### 通过 Secrets\n\n进入项目[Secrets](../../settings/secrets/new)界面添加你之前获得的信息\n\n| 添加名                   | 添加值          |\n| ------------------------ | --------------- |\n| ALIYUN_ACCOUNT_ID        | accountId       |\n| ALIYUN_ACCESS_KEY_ID     | accessKeyId     |\n| ALIYUN_ACCESS_KEY_SECRET | accessKeySecret |\n| ONEDRIVE_REFRESH_TOKEN   | refresh_token   |\n\n进入[Actions deloy-by-secrets](../../actions?query=workflow%3Adeloy-by-secrets), 点击右侧**Run workflow**可部署此项目\n\n如果按照默认区域部署, 云函数链接在[函数计算控制台](https://fc.console.aliyun.com/fc/service/cn-hongkong/aliyun-severless-b395ab/function/onedrive-severless/overview)\n\n## 前端\n\n本项目仅为**后端**代理访问, 可在[config.toml](./config.toml)设置允许访问的 API\n\n[在 Microsoft Graph 中使用文件](https://docs.microsoft.com/zh-cn/graph/api/resources/onedrive) 可获取所有 API\n\n测试原始 API: [Graph 浏览器](https://developer.microsoft.com/zh-cn/graph/graph-explorer) 可以发出请求并查看 Microsoft Graph 的响应\n\n## 其他\n\n该项目默认部署在香港, 可在[config.toml](./config.toml) 更改部署区域, 区域对应节点名在[ali-oss#data-regions](https://github.com/ali-sdk/ali-oss#data-regions)查看, 但**不建议**更改部署区域\n\n可在[你已授予访问权限的应用和服务](https://account.live.com/consent/Manage)取消应用名称为**onedrive-severless-b73c4cc**的授权, 之前的一切令牌都会失效\n\n欢迎[issue](../../issues)和[pull](../../pulls)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisonge%2Faliyun-onedrive-severless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flisonge%2Faliyun-onedrive-severless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisonge%2Faliyun-onedrive-severless/lists"}