https://github.com/devsdocs/herokudriverclone
https://github.com/devsdocs/herokudriverclone
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devsdocs/herokudriverclone
- Owner: devsdocs
- Created: 2021-05-07T07:38:34.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-21T08:08:53.000Z (about 5 years ago)
- Last Synced: 2025-05-14T02:56:31.986Z (about 1 year ago)
- Language: Dockerfile
- Size: 13 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HerokuDriveRclone
Access Your Google Drive Folder via Heroku using Rclone and Google Service Account (SA)
# Credits
- developeranaz
- Rclone
- Heroku
- Google
# Requirements
- An Google Service Account with Google Drive API activated. Go here for reference.
- Make sure to include your SA address to your drive folder/Team Drive directly or via Google Groups
- Common sense
- Heroku account
# Steps
- Pull or download this repo and push or upload to your private repo. (So you won't expose your SA)
- Copy SA .json content to acc.json file, and visit URL below.
- Then go to https://heroku.com/deploy?template=https://github.com/yourusername/yourprivatereponame
- Notice the `yourusername` and `yourprivatereponame` on url above, use your own.
- Heroku can detect your private repo if you have active login on the same browser.
- Insert your app name, server location and Google Drive folder/Team Drive ID, make sure your .json have access to your folder/Team Drive.
- Wait for build and done.
# Extra(s)
- Setup a basic http auth for single user with adding `--user` and `--pass` flags to this file
- Example: `--user devsdocs_u --pass devsdocs_p`
- Go here if you want to setup multiple user for your app.
# Tip(s)
- To change folder, just replace your folder ID in your Heroku App Config Vars and restart your dyno(s)
- Keep your free heroku account live with Cron-Job