Goindex will allow you to index you files on the browser on Cloudflare Workers by combining the power of Cloudflare Workers and Google Drive.

1.Get auth code

Open https://installen.gd.workers.dev/ in your browser ,then Click the 1.GET AUTH CODE button

Continue to copy your google auth code ,and paste it to Auth code

2.Build cloudflare wokers code

Click the 1.BUILD button ,and it will auto build cloudflare wokers code.

Then Copy the cloudflare wokers code.

1
2
3
4
5
6
7
8
9
10
11
var authConfig = {
"siteName": "GoIndex", // 网站名称
"root_pass": "index", // 根目录密码,优先于.password
"version" : "1.0.6", // 程序版本
"theme" : "material", // material classic
"client_id": "202264815644.apps.googleusercontent.com",
"client_secret": "X4Z3ca8xfWDb1Voo-F9a7ZxJ",
"refresh_token": "", // 授权 token
"root": "root" // 根目录ID
};
...

The default path is your google drive root path ,you customize the path id. If your google drive folder is https://drive.google.com/drive/folders/0APoZNCYn9M8lUk9PVA ,0APoZNCYn9M8lUk9PVAis the path id.

The default root path password is index ,you customize the root path password.If you don’t want the password ,you can leave a blank.

3.paste the cloudflare wokers code to cloudflare wokers

Log in your cloudflare account, Click the Get started with Workers button.

Continue to click Create a Worker button.

Paste the cloudflare wokers code here

Finally ,save and deploy it.

Enjoy yourself!

4.Reference

donwa/goindex

office demo

GoIndex:一个无需服务器的Google Drive目录索引程序