- Install
rclone
- Create your Google Drive API
client_id
andclient_secret
- You can follow this guide to do so
- Create a rclone config for your Google Drive Account following this guide
- Run
rclone config file
in a terminal to determine the path ofrclone.conf
- Open
rclone.conf
and take note ofclient_id
,client_secret
andrefresh_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
intowrangler.toml
and then edit it:- Inside the quotes next to
account_id
paste yourAccount ID
- Inside the quotes next to
- Rename
workers-site/config/auth.example.js
intoauth.js
and then edit it:- Inside the quotes next to
client_id
paste yourclient_id
- Inside the quotes next to
client_secret
paste yourclient_secret
- Inside the quotes next to
refresh_token
paste yourrefresh_token
- Change
siteName
,siteFavicon
andsiteAvatar
as you like - Add your
roots
, the folder ids are taken from the url of the folder on Google Drive
- Inside the quotes next to
- Rename
workers-site/config/ui.example.js
intoui.js
and then edit it as you like - Run
wrangler publish
to upload the app