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개의 좋아요

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개의 좋아요

Hi,

Im setting this again on my forum. There’s just one thing i dont understand. How to set the long polling url? i neeed to create a subdomain then add it on "Site.Setting.Longpolling( i dont know exactly the name of the config)?

Thanks

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개의 좋아요

네, 저도 같은 문제를 겪고 있습니다.

PR 올려주셔서 감사합니다. Contribute > Bug 채널에 게시물을 올려서 검토를 받아보시는 게 좋을 것 같습니다.

Got you! Just fixed the format issue and got the approved at Github, I will post this fix in #bug::category thanks for the suggestion!

1개의 좋아요