name = "ipfstr-ipfs-fallback"
main = "worker-ipfs-fallback.js"
compatibility_date = "2024-12-01"

[vars]
# Point this to a dedicated tunnel hostname that maps to your IPFS gateway (8081).
ORIGIN_GATEWAY_BASE = "https://ipfstr-origin.example.com"

# Public fallback if your origin is down.
FALLBACK_GATEWAY_BASE = "https://dweb.link"

[routes]
# Route only the /ipfs path to the Worker.
routes = [
  { pattern = "ipfstr.example.com/ipfs/*", zone_name = "example.com" }
]
