Skip to content

Commit 954805a

Browse files
authored
feat: Add Google Drive connection documentation (#39)
1 parent f3f509b commit 954805a

File tree

7 files changed

+53
-9
lines changed

7 files changed

+53
-9
lines changed

docs/img/settings/google_step_1.png

53.4 KB
Loading

docs/img/settings/google_step_2.png

52.6 KB
Loading

docs/img/settings/google_step_3.png

57.8 KB
Loading

docs/img/settings/google_step_4.png

93.1 KB
Loading

docs/img/settings/google_step_5.png

55 KB
Loading

docs/img/settings/google_step_6.png

111 KB
Loading

docs/user_manual/settings.md

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,17 @@
8787
!!! note ""
8888
**支持添加本地服务器磁盘和第三方账号:**
8989

90-
- 亚马逊 S3 云存储
9190
- 阿里云 OSS
9291
- 腾讯云 COS
92+
- 亚马逊 S3 云存储
9393
- 微软 OneDrive
94-
- 七牛云 Kodo
95-
- 又拍云 对象存储
94+
- 谷歌云盘
95+
- 阿里云盘
9696
- MINIO
97-
- SFTP
9897
- WebDAV
98+
- SFTP
99+
- 七牛云 Kodo
100+
- 又拍云 对象存储
99101

100102
### 3.2 OneDrive 自定义配置
101103

@@ -182,21 +184,62 @@
182184
### 3.5 谷歌云盘账号绑定
183185

184186
!!! note ""
185-
(1)点击授权码的获取按钮,登陆谷歌账号。
187+
**在调用 Google API 时需要使用到 3 个参数:**
188+
189+
- client_id: 客户端ID
190+
- client_secret: 客户端密码
191+
- redirect_uri: 重定向地址
192+
193+
!!! note ""
194+
(1)访问并登录 Google Cloud:https://console.cloud.google.com/projectselector2/auth/clients?hl=zh-cn&supportedpurview=project。
195+
196+
(2)点击创建项目,并填写项目名称。
197+
198+
![img.png](../img/settings/google_step_1.png)
199+
{: .original}
200+
201+
!!! note ""
202+
(3)配置 Google Auth Platform,受众群体选择外部。
203+
204+
![img.png](../img/settings/google_step_2.png)
205+
{: .original}
206+
207+
!!! note ""
208+
(4)创建 OAuth 客户端,应用类型选择 Web应用,添加重定向地址 https://localhost:8080,创建。
209+
210+
![img.png](../img/settings/google_step_3.png)
211+
{: .original}
212+
213+
!!! note ""
214+
(5)复制对应的客户端 ID 以及客户端密钥。
215+
216+
![img.png](../img/settings/google_step_4.png)
217+
{: .original}
218+
219+
!!! note ""
220+
(6)发布应用
221+
222+
![img.png](../img/settings/google_step_5.png)
223+
{: .original}
224+
225+
!!! note ""
226+
(7)启用 google drive API
186227

187-
(2)跳转至 1Panel 应用,完成登陆。
228+
![img.png](../img/settings/google_step_6.png)
229+
{: .original}
230+
231+
!!! note ""
232+
(8)点击授权码的获取按钮,登陆谷歌账号,跳转至 1Panel 应用,完成登陆。
188233

189234
![img.png](../img/settings/google_drive_1.png)
190235
{: .original}
191236

192237
!!! note ""
193-
3)完成授权后继续跳转,在浏览器地址中复制授权码(注意!这里只需要复制 code 的值)
238+
9)完成授权后继续跳转,在浏览器地址中复制授权码(注意!这里只需要复制 code 的值),粘贴复制的授权码到授权码输入框中,修改备份目录后点击确认即可
194239

195240
![img.png](../img/settings/google_drive_2.png)
196241
{: .original}
197242

198-
!!! note ""
199-
(4)粘贴复制的授权码到授权码输入框中,修改备份目录后点击确认即可
200243

201244
### 3.6 WebDAV 连接 AList
202245

@@ -234,6 +277,7 @@
234277
|华为云|文档未说明是否兼容,工单反馈不保证兼容性,实际测试可以使用|Virtual Hosted Style||
235278
|Ucloud|只支持 8MB 大小的分片,本插件暂不支持<br>[https://docs.ucloud.cn/ufile/s3/s3\_introduction](https://docs.ucloud.cn/ufile/s3/s3_introduction)|\-||
236279

280+
237281
## 4 快照
238282

239283
!!! note ""

0 commit comments

Comments
 (0)