Combining the power of Cloudflare Workers and Google Drive will allow you to use Google Drive into a Content Delivery Network.
src/index.js is the content of the Workers script. and
start.js is to start Workers inside your server
- Install rclone software locally
- Follow https://rclone.org/drive/ bind a drive
- Execute the commandrclone config file to find the file rclone.conf path
- Open rclone.conf,find the configuration root_folder_id and refresh_token
- Clone the repository https://github.com/PartyService/GoCDN and fill in root and refresh_token on settings.json
- run
npm ito install all dependencies - run
start.jsto run locally on your PC. If you want to publish it to Cloudflare Workers dev, you can runnpx wrangler publish.
The GoCDN repository is licensed under the MIT License. Please see the LICENSE file for more information.
GoIndex - Alx-xlx