# האצת CDN מלאה לאתר עבור Discourse

**URL:** https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467
**Category:** Self-Hosting
**Tags:** cdn, explanation
**Created:** [24 באוקטובר,‏ 2014,‏ 6:17am UTC](https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467 "2014-10-24T06:17:57Z")
**Posts on this page:** 6
**Page:** 3

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2 בפברואר,‏ 2025,‏ 11:32pm UTC](https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467/41 "2025-02-02T23:32:56Z")

</div>

> [@David\_Ghost](#):
>
> I’m trying it as “CDN acceleration” with my vps ip with bunny dns. It’s works, but all users have the same ip.

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?

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [3 בפברואר,‏ 2025,‏ 12:09am UTC](https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467/42 "2025-02-03T00:09:24Z")

</div>

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):

```plaintext
- 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.

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [21 באוגוסט,‏ 2025,‏ 12:28pm UTC](https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467/43 "2025-08-21T12:28:59Z")

</div>

שלום,

אני מגדיר את זה שוב בפורום שלי. יש רק דבר אחד שאני לא מבין. איך להגדיר את ה-URL של ה-long polling? אני צריך ליצור תת-דומיין ואז להוסיף אותו ב-“Site.Setting.Longpolling” (אני לא יודע בדיוק את שם ההגדרה)?

תודה

---

<div class="post-metadata">

### Author: ![lukec](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@lukec](https://meta.discourse.org/u/lukec)
#### Post date: [21 באוגוסט,‏ 2025,‏ 10:48pm UTC](https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467/44 "2025-08-21T22:48:45Z")

</div>

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](https://github.com/discourse/discourse/pull/34477)

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [22 באוגוסט,‏ 2025,‏ 4:28am UTC](https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467/45 "2025-08-22T04:28:35Z")

</div>

כן, אני נתקל באותה הבעיה.

תודה על הבקשה. אני חושב שכדאי לך ליצור פוסט ב-#Bug כדי שהוא ייבדק.

---

<div class="post-metadata">

### Author: ![lukec](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@lukec](https://meta.discourse.org/u/lukec)
#### Post date: [22 באוגוסט,‏ 2025,‏ 12:39pm UTC](https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467/46 "2025-08-22T12:39:03Z")

</div>

הבנתי! תיקנתי את בעיית הפורמט וקיבלתי אישור ב-Github, אפרסם את התיקון הזה ב-#Bug תודה על ההצעה!

[Previous page](https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467.md?page=2)
