690 B
690 B
Nix cache proxy for R2
Heavily based on https://github.com/piperswe/nix-cache
Setting up on your domain
- Create an A record on the subdomain you want this Worker to run on which points to
192.0.2.1(see https://community.cloudflare.com/t/a-record-name-for-worker/98841/2 for why) - Edit
wrangler.tomlaccount_idshould be your Cloudflare account's tagrouteshould be the subdomain this Worker will run on followed by/*bucket_nameandpreview_bucket_nameshould be the name of the R2 bucket you'll use
- Run
npm run loginto login to Wrangler - Run
npm run deploy! - Upload an
index.htmlto your bucket if you want a landing page