https://github.com/rhodey/ipfs-boot-cloudflare
Cloudflare R2 = IPFS gateway
https://github.com/rhodey/ipfs-boot-cloudflare
crypto ipfs p2p
Last synced: 2 months ago
JSON representation
Cloudflare R2 = IPFS gateway
- Host: GitHub
- URL: https://github.com/rhodey/ipfs-boot-cloudflare
- Owner: rhodey
- License: mit
- Created: 2025-07-12T15:22:39.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-09-10T20:28:15.000Z (4 months ago)
- Last Synced: 2025-09-21T23:58:18.854Z (4 months ago)
- Topics: crypto, ipfs, p2p
- Language: Dockerfile
- Homepage: https://lock.host
- Size: 18.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IPFS-boot-cloudflare
Cloudflare R2 bucket = fast gateway
Parent repo = [IPFS-boot](https://github.com/rhodey/IPFS-boot)
## How to
This repo contains a Dockerfile which replaces the image built [here](https://github.com/rhodey/IPFS-boot#pin)
```
docker buildx build --platform=linux/amd64 -t ipfs-pin .
```
After you build the image add the following to your .env
```
pin_cloudflare_api=https://abc123.r2.cloudflarestorage.com/bucket-name
pin_cloudflare_access=abc123
pin_cloudflare_secret=abc123
```
All docs about pin and publish continue to work the same except now your app is loaded also from Cloudflare
## Cloudflare setup
+ Create a Cloudflare account
+ Type "R2" in the console search bar
+ Add a credit card which will be billed if you go over [free tier](https://developers.cloudflare.com/r2/pricing/#free-tier)
+ Create a bucket and enable CORS "*"
+ Manage API tokens > Create API token > Object Read & Write
## Disclaimer
+ Setup your Cloudflare bucket to use "custom domain"
+ The "development url" seems to rate limit sometimes
## Also
+ Cloudflare R2 is used in addition to a list of default gateways (resilient!)
+ See [WORKER.md](/WORKER.md) for adding cache layer (faster!)
## License
MIT