Git Product home page Git Product logo

goindex-1's Introduction

GoIndex

GoIndex

Cloudflare Workers + Google Drive Directory Index | A modification of the now-defunct GoIndex project developed by donwa.

Please read LICENSE.md before using this project.

Modifications from the original:

  • 1000 byte filesize measure changed to 1024
  • Column headers have been changed to English (Name, Date modified, Size)
  • Removed ?a=view feature, as it's useless for my intentions.
  • to be determined

How to use

  1. Create a Google Drive remote using rclone. YOU WILL HAVE TO CREATE YOUR OWN client_id AND client_secret VALUES. FOLLOW THIS GUIDE IF YOU DO NOT KNOW HOW TO MAKE ONE.
  2. Run rclone config file in a terminal to determine the path for rclone.conf.
  3. Open rclone.conf and take note of client_id, client_secret, refresh_token, and root_folder_id. If you have designated a shared (team) drive instead of a folder, then you must create a folder in the selected shared drive, and take note of that new folder's ID.
  4. Create a worker at Cloudflare Workers.
  5. Copy the contents of index.js and paste it into the "Script" section of the worker.
  6. Configure authConfig. (example below)
  7. Make sure you configured everything properly by clicking on Preview and refreshing the display.
  8. Press Save and Deploy, and you're done!

Example authConfig

var authConfig = {
    "siteName": "GoIndex", // Website title, I recommend changing this
    "root_pass": "index",  // Leave blank for no password
    "theme" : "material",  // Available themes: material, classic
    "client_id": "",       // Create your own client_id and client_secret values and put them here.
    "client_secret": "",   // https://rclone.org/drive/#making-your-own-client-id
    "refresh_token": "",   // Take from rclone.conf remote
    "root": "root"         // Folder ID for root directory. THIS CAN NOT BE A SHARED DRIVE ID! (but it can be a folder ID inside a shared drive.)
};

goindex-1's People

Contributors

thegreatestminer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.