GDIndex Deployment Tutorial - A Google Drive Direct Link Indexer with Upload and Download Support

date
Nov 26, 2022
slug
gdIndex
status
Published
tags
GDIndex
Google Drive
summary
type
Newsletter

Introduction

GDIndex is similar to GOIndex. It allows you to deploy a "Google Drive Index" on CloudFlare Workers along with many extra features
By the way, instead of modify from GOIndex, this is a total rewrite

Difference between GOIndex and GDIndex

  • Frontend is based on Vue.js
  • Image viewer doesn't require opening new page
  • Video player support subtitles(Currently only srt is supported)
  • Online PDF, EPUB reader
  • No directory-level password protection(.password)
  • Support Http Basic Auth
  • Support multiple drives(personal, team) without changing server's code

Usage

Simple and automatic way

Go https://gdindex-code-builder.maple3142.net/, and follow its instructions.

Manual way

  1. Install rclone
  1. Setup your Google Drive: https://rclone.org/drive/
  1. Run rclone config file to find your rclone.conf location
  1. Find refresh_token in your rclone.conf, and root_folder_id too(optionally).
  1. Copy the content of worker/dist/worker.js to CloudFlare Workers.
  1. Fill refresh_tokenroot_folder_id and other options on the top of the script.
  1. Deploy!

Using service accounts

  1. Create a service account, a corresponding service account key, and get the JSON from the Google Cloud Platform console
  1. In the props object, replace the service_account_json value with the contents of the service account JSON file and set service_account to true.
  1. Make sure that the service account in question has access to the folder specified in root_folder_id
  1. Deploy
 
If you have any questions, please contact me.