Something went wrong. Try again.
files.jcrt.org mirror
Something went wrong. Try again.
Files
- JavaScript 50%
- Python 47%
- XSL 3%
- Shell <1%
README.md
jcrt-files // files.jcrt.org #
Asset delivery repository for JCRT.
TODO (Adam) #
Purpose #
This repo receives synced assets from jcrt-v2 and publishes them to Cloudflare R2, served by a Worker on:
https://files.jcrt.org/images/...https://files.jcrt.org/archives/...https://files.jcrt.org/citations/...https://files.jcrt.org/docs/...
Required secrets (GitHub repo: jcrt-files) #
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID
Required Cloudflare setup #
- Create R2 bucket:
jcrt-files. - Deploy worker from this repo (
wrangler deploy). - Add Worker custom domain route for
files.jcrt.org/*. - Ensure DNS for
files.jcrt.orgis in Cloudflare-managedjcrt.orgzone.
How sync works #
jcrt-v2workflow pushes mirrored content into this repo.- Every push runs an
rclone --checksumcomparison of the whole git-tracked tree against the bucket and uploads whatever differs (content-addressed — no diff windows, so a file committed during a cancelled run is picked up by the next one). The git tree is the source of truth. - Deletion is opt-in: dispatch the workflow with
prune_deletes=trueto remove bucket objects no longer tracked in git. - The Worker deploys only when
src/orwrangler.tomlchanged (ordeploy_worker=true).