privacyguides.org icon indicating copy to clipboard operation
privacyguides.org copied to clipboard

Switch hosting provider to Cloudflare Pages

Open jonaharagon opened this issue 2 years ago • 3 comments
trafficstars

Just exploring this option, this PR would let us move the main website hosting from Netlify to having it built on GitHub Actions and hosted on Cloudflare Pages.

There's a few reasons we might want to do this:

  1. Netlify doesn't allow multiple users to access it (well, it does but it's mega expensive). Both @dngray and I have access to our Cloudflare account, and we could grant very granular access to other people as needed for free.
  2. Any team member could re-attempt and troubleshoot a failed site build in the Actions tab on GitHub, instead of needing me to log in to Netlify.
  3. Netlify analytics is an additional $9/month, and we are considering using it because of #2305
  4. Benefiting from ECH on Cloudflare's platform might legitimately outweigh the privacy concerns people have with Cloudflare, if ECH is adopted by major browsers.

Cloudflare Pages is not as nice as Netlify in some respects:

  1. The redirect options are way worse, we can't redirect by browser language or country code, so everyone visiting privacyguides.org would just default to /en/ unless they manually select their language using the flag on the site.

We would continue using Netlify for PR Previews only, because there are security issues with creating PR Previews with GitHub Actions, and the alternative Cloudflare Pages app we could normally use does not build our site properly.


Test preview: https://jonaharagon-cloudflare-pages.preview-privacyguides-org.pages.dev/ - I think everything functions as intended here...

jonaharagon avatar Oct 11 '23 07:10 jonaharagon

Deploy Preview for privacyguides ready!

Name Link
Latest commit 9b4a7ff64201df5e95f7cdf942c5940d4fbaa757
Latest deploy log https://app.netlify.com/sites/privacyguides/deploys/6526527f980e200008272583
Deploy Preview https://deploy-preview-2306.preview.privacyguides.dev
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Oct 11 '23 07:10 netlify[bot]

You can redirect based on country by using workers: https://developers.cloudflare.com/workers/examples/country-code-redirect

ph00lt0 avatar Oct 11 '23 18:10 ph00lt0

Websites protected by Cloudflare are often painful to access in Tor browser. Is this going to affect Tor users?

Dyrimon avatar Nov 03 '23 06:11 Dyrimon