Skip to content
This repository was archived by the owner on Jun 14, 2021. It is now read-only.
This repository was archived by the owner on Jun 14, 2021. It is now read-only.

希望更详细一点的 Workers & Fetcher 配置描述 #12

Closed
@monsterxcn

Description

@monsterxcn

折腾了一天将全套系统部署完了,fetch 了 OneJAV 的几部影片到本地后成功 move 到 rclone 挂载的 Google Drive ,网页登陆也可以看到云端硬盘中的文件,可 WebUI 显示有一个硬盘但是没有视频。

不知道是因为我用的是云端共享硬盘还是因为配置错了 QAQ 。fetcher lemp core 全部使用 Docker 部署,以下是我的部分配置过程:

core

关于 core 中说要用到 client_id client_secret access_token refresh_token ,但是我并不知道是在哪里用的... rclone 在服务器挂载硬盘时倒是有需要 client_id client_secret ,然后点链接授权之后返回了 access_token refresh_token 。之后本地挂载和文件 move 都正常。

然后在数据库导入 drives 表数据时说明是这样的:

INSERT INTO `drivers` (`id`, `name`, `driverType`, `driverData`, `isEnable`, `createTime`, `updateTime`) VALUES
(1, '1', 'gd', 
'{\"oAuth\":
    {\"client_id\":\"【your_client_here】\",
    \"client_secret\":\"【your_client_secret_here】\",
    \"redirect_uri\":\"urn:ietf:wg:oauth:2.0:oob\",
    \"token\":
        {\"access_token\":\"【your_access_token_here_optional】\", 
        \"refresh_token\":\"【your_refresh_token_here】\",
        \"scope\":\"https://www.googleapis.com/auth/drive\",
        \"token_type\":\"Bearer\",
        \"expiry_date\":1583679345619}},
    \"drive\":{\"driveId\":\"【your_drive_or_folder_id_here】\"},
    \"encryption\":
        {\"secret\":\"【path_ase_secret】\",
        \"server\":\"【your_gd_proxy_server_here】"}}',
1, '【timestanp_in_ms_here】', '【timestanp_in_ms_here】');

嗯,好的,我按照 rclone 挂载时的 client_id client_secret access_token refresh_token 填好了,后面的 driveId 我填的是 https://drive.google.com/drive/folders/【id】 这里后面的文件夹 id 。

然后 secret 我就不知道是什么了 QAQ 。我将部署 google drive workers 时要填的 aes_password 填了进去。

workers

workers 里面的 gd-config.js 中要填 aes_password client_id client_secret refresh_token ,后三个我将 rclone 挂载的时候那几个对应 client_id client_secret refresh_token 填进去了, aes_password emmm... 不知道是啥,我就把 access_token 填了进去,webpack 构建完后部署到 workers.dev 了。

以上就是我认为可能出错的地方了,如果还有什么要补充的细节请提。霖大有时间的话救救孩子!蟹蟹了


我尝试将 AES 加密的密码填在 workers gd-config.js 的 aes_password ,修改 drivers 数据表中的 【path_ase_secret】 为 AES 加密后的谷歌盘文件夹 id ,然后更新 core 容器编排,但是好像也不对 QAQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions