Switch static asset hosting to Cloudflare Pages
lidel opened this issue · 0 comments
lidel commented
As discussed today on the call, we want to decouple hosting at inbrowser.tld
from public gateway infra to make debugging easier by removing factors unrelated to this client-side project.
I will be executing below this week.
TODO
- Set up Cloudflare Pages build for production and staging
-
production
branch builds and deploys to https://ipfs-service-worker-gateway.pages.dev -
staging
branch builds and deploys to https://staging.ipfs-service-worker-gateway.pages.dev
-
- Update Nginx in waterworks-infra to proxy to above domains, instead of rainbows
- https://github.com/ipshipyard/waterworks-infra/pull/133
- CI error (resolved)
- Cloudflare setup for wildcard certs on
*.ip[fn]s.inbrowser.tld
- confirm
_redirects
works as expected - confirm
inbrowser.link
backed by https://ipfs-service-worker-gateway.pages.dev- subdomain nginx config working as expected
- confirm
inbrowser.dev
backed by https://staging.ipfs-service-worker-gateway.pages.dev- subdomain nginx config working as expected
- https://github.com/ipshipyard/waterworks-infra/pull/133
- Update CI
- remove dance related to CID and dnslink-driven deployments
- stop updating DNSLinks on main and release
- make it update
_dnslink.cid.inbrowser.tld
instead of main domain (removes problem with ipfs-companion and brave performing unnecessary redirect) - remove cron trigger from smoke test job (no longer need to run every hour)
- confirm
main
build no longer deploys anything to DNS
- README / docs/dev: document deployment requires push to
staging
orproduction