Skip to main content
Discourse has built-in CDN support. This guide walks you through pointing it at Bunny CDN.
1

Create a Pull Zone

Log in to your bunny.net dashboard and open the Add Pull Zone page. Choose a name for your zone, then set the origin URL to your Discourse forum (for example, discourse.example.com).
Creating a Pull Zone for Discourse
Select a pricing tier and click Add Pull Zone. For more detail, see How to create your first Pull Zone.
2

Configure Discourse with your Pull Zone

Open your app.yml configuration file and find the following lines:
## the origin pull CDN address for this Discourse instance
DISCOURSE_CDN_URL: https://discourse-cdn.example.com
If they aren’t present, add them below the other DISCOURSE_ variables. Replace the DISCOURSE_CDN_URL value with your Pull Zone hostname.
Setting DISCOURSE_CDN_URL in app.yml
3

Rebuild the Discourse container

Apply the new configuration by rebuilding the container:
./launcher rebuild app
Once the rebuild finishes, your forum is served through Bunny CDN. To confirm everything is working, see Verify your configuration.
Last modified on June 23, 2026