Google Drive Index

Bhadoo Index Worker Generator

Create a ready-to-deploy worker.js for the Google Drive Index source using your own Google OAuth credentials, refresh token, Drive IDs, and site settings.

1

Prepare Google OAuth

Create an OAuth client as Web application, enable Google Drive API, and add this exact redirect URI. Do not add a trailing slash.

https://developers.google.com/oauthplayground Open Google Cloud Credentials Open OAuth Playground
In Google Auth Platform, make sure your account is allowed as a test user if the app is still in Testing. The Drive Index needs the full Google Drive scope to list, search, preview, and download files.
2

Google Credentials & Refresh Token

Enter the Web OAuth Client ID and Client Secret from your Google Cloud project. Authorize Google Drive, then paste the authorization code from OAuth Playground and exchange it here.

Google will return you to OAuth Playground because that exact URI is registered above.
On OAuth Playground, Step 2 shows the authorization code. Copy it back here before exchanging it elsewhere. You may paste only the code or the full URL containing code=.
This is the value used by worker.js. Keep it private.
Short-lived. It is only useful here for Shared Drive discovery; the generated worker uses the refresh token.
Already have a refresh token?

You can skip authorization and paste your existing refresh token into the Refresh Token field above. Client ID and Client Secret must match the OAuth client that issued it.

3

Configure Your Google Drive Index

Set the site name and Drive roots that will be written into the supplied Google Drive Index worker.js.

Drives

Use root for personal My Drive, or paste a folder / Shared Drive ID.

Encryption Keys Generated locally

Advanced Options
UI Options