Skip to content

Latest commit

 

History

History
25 lines (24 loc) · 1.63 KB

README.md

File metadata and controls

25 lines (24 loc) · 1.63 KB

How to use

  • Install rclone
  • Create your Google Drive API client_id and client_secret
  • Create a rclone config for your Google Drive Account following this guide
  • Run rclone config file in a terminal to determine the path of rclone.conf
  • Open rclone.conf and take note of client_id, client_secret and refresh_token
  • Install wrangler (Manual install is recomanded)
  • Run in a terminal wrangler login and allow the app to manage the Account
  • Login into your Cloudflare Dashboard and click on Workers on the left.
  • Take note of your Account ID on the right side of the page.
  • Rename wrangler.example.toml into wrangler.toml and then edit it:
    • Inside the quotes next to account_id paste your Account ID
  • Rename workers-site/config/auth.example.js into auth.js and then edit it:
    • Inside the quotes next to client_id paste your client_id
    • Inside the quotes next to client_secret paste your client_secret
    • Inside the quotes next to refresh_token paste your refresh_token
    • Change siteName, siteFavicon and siteAvatar as you like
    • Add your roots, the folder ids are taken from the url of the folder on Google Drive
  • Rename workers-site/config/ui.example.js into ui.js and then edit it as you like
  • Run wrangler publish to upload the app

Thanks to: