Cannot use Cloudflare proxy with my installation

I’ve 2 container setup with Nginx set outside the container. SSL/Https is working ok thru outer nginx.

Now if I use cloudflare’s proxy, then my discourse site stops and default nginx welcome msg file is served. And if I toggle a button inside cloudflare settings (so that its role just remains as a DNS forwarder), so that ‘yellow’ cloud icon becomes a black & white cloud icon (DNS Only mode), my site again starts working.

Note: I’ve not changed anything in my app.yml regarding Cloudflare (thinking that that change was needed only if I configured some push type CDN, something like ‘Fastly’)

We strongly advise you not to use the Cloudflare proxy. It causes more problems than it solves.

5 Likes

Ok. Thanks.
Then I’d really stop it using.
But could you just tell if no ‘pull’ type CDN work or problem is with Cloudflare only?

And if recommendation of ‘Fastly’ is still valid?

1 Like

Any other pull CDN should work fine, but you want to ensure you set it as a CDN in your configuration rather than putting it on your main site’s URL.

e.g. for meta.discourse.org:

  • meta.discourse.org goes directly to the application server
  • we have a CDN that also points to the application server:
    DISCOURSE_CDN_URL: https://d3bpeqsaub0i6y.cloudfront.net
    
  • we also have a CDN that points to the S3 assets bucket, but you would ignore this unless you also have uploads on S3
    DISCOURSE_S3_CDN_URL: https://d11a6trkgmumsb.cloudfront.net
    
8 Likes