How do you setup Cloudflare?

Cloudflare works fine in DNS only mode.
If You want to use cloudflare optimization, make sure You disable cache, apps & performance through a page rule (also turn off rocket loader).

Apart from this, You have to resolve user’s original IP instead of cloudflare proxy IP so that they’re not rate limited due to many requests coming from same IP.

2 Likes

I’m using the template specified by @codinghorror .

It should resolve the correct IP. And, If I use different subdomain which uses DNS only mode for long polling, will it not work?

That’s one way to over-complicate things.
I’ve had issues trying to get it work right in the past and won’t really recommend it unless you’re up for some unexpected adventure every now & then.

1 Like

I think long polling works fine. I just got confused reading above thread.
Below @sam mentions that CloudFlare supports it.
https://meta.discourse.org/t/install-discourse-on-amazon-ws-with-cloudflare/37323/15?u=raj_rathore

Just to clarify, does this mean we do not have to change long polling settings in our site admin settings?

And If I need to do this, is there a guide for setting up such subdomain URL and configure it?

This topic was automatically closed after 3216 days. New replies are no longer allowed.