Hi,
I see that when the users see logged in devices, Discourse shows the edge CloudFlare edge server location.
I have made so that the whole forum is behind CloudFlare, is there an option to use the CloudFlare geo header, after all the server will have it received.
Welcome @kaziqta! Unfortunately we donât recommend running all your traffic through CloudFlare, as it can cause issues with Discourse sites not working properly.
Yes, thereâs a template you can add to your app.yml which will pass the client IP that Cloudflare forwards into Discourse. Add cloudflare.template.yml to the templates block as follows:
templates:
- "templates/cloudflare.template.yml"
And then rebuild.
I donât think this is true at all, providing a rule is created to âdisable performanceâ for the Discourse URL so that no extra optimisations or minification interferes with the payload and Brotli is disabled at a domain level there arenât any real issues.
It does add unnecessary hops from client to server, which can delay requests by a small amount, but otherwise it works fine.
I have translated a lot of strings, btw, will that be lost on rebuild?
Are you contributing to Discourse on Transifex?
There is one, and only one, legit case for running everything through CloudFlare â when your site is at high risk of DDoS and you canât risk exposing the source IP of your site. There are some other topics here on that, the danger is that the IP can be revealed through some obscure output somewhere so you have to be very sure there are no IP leaks or all is lost.
For people who canât afford a separate CDN itâs also not a bad way to offload uploads and avatars, but yes otherwise the complexity and disadvantages outweigh any benefits.
Directly in Discourse, Bulgarian translations are just⌠I already translated âdisqusâ but I just want to know if I rebuild if the internal translations are lost
RE: did it I ran the script that is in the
templates/cloudflare.template.yml
Added the output to my nginx config, all good now! thank you!
Heads up Stefan: if you ran the script itself itâll be overwritten the next time your update Discourse. Be sure to include the template in your app.yml
to make sure it is persistent.
If you look near the top of your existing app.yml
in /var/discourse/containers/app.yml
youâll see a number of templates. Add Cloudflare the Cloudflare template to that list. Note that YAML is incredible whitespace sensitive, so ensure everything continues to line up.
Sure, added already.
Just want to know if rebuild deletes the local translations
If you did them in the UX through the /admin/customize/text interface, youâre safe.
Perfect, thank you for the information
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.