Full site CDN acceleration for Discourse

Did you follow the instructions in the OP or did you just change dns so that all traffic goes through bunny?

If it’s the latter, then you’re likely to have other problems, but you will need to make a template like the cloudflare one. Can you find where they publish their ip addresses?

1 like

hey,

i have changed my dns from cloudflare to bunny CDN, then i activated CDN acceleration in my vps IP and used that template for the nginx config (in the app.yml):

- replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: "$proxy_add_x_forwarded_for"
     to: "$http_x_real_ip"
     global: true

I hope this helps other people who want to do this. it’s works on my end.

3 likes

Hallo,

Ik stel dit opnieuw in op mijn forum. Er is maar één ding dat ik niet begrijp. Hoe stel ik de long polling URL in? Moet ik een subdomein aanmaken en het dan toevoegen aan "Site.Setting.Longpolling (ik weet de exacte naam van de configuratie niet)?

Bedankt

trying:

DISCOURSE_LONG_POLLING_BASE_URL: https://original.example.com

But it is not working, the page is still request `/`

I’ve opened an PR for this issue: FIX: Respect long_polling_base_url setting for message bus configuration by chenglu · Pull Request #34477 · discourse/discourse · GitHub

1 like

Ja, ik heb hetzelfde probleem.

Bedankt voor de pull request. Ik denk dat je een bericht moet plaatsen in Bug om het te laten beoordelen.

Begrepen! Ik heb zojuist het opmaakprobleem opgelost en de goedkeuring bij Github verkregen. Ik zal deze oplossing plaatsen in Bug, bedankt voor de suggestie!

1 like