To start using bunny.net CDN, you will first need to create a pull zone. A pull zone is the 'zone' that users will request content through, accelerating the loading speed of cached web assets.
Upon creation of a pull zone, bunny.net will assign a new hostname address such as mywebsite.b-cdn.net. You will then be able to use this address to quickly deliver your content. When requests are made, bunny.net will automatically pull content from your configured origin, and cache it on the edge CDN.
For example, if your file is typically located at: https://mywebsite.com/image.jpg
The same file will now be available at: https://mywebsite.b-cdn.net/image.jpg
Creating your first pull zone
1. Navigate to our dashboard, and click on the 'CDN' sub-section under 'Delivery'. This is found on the left hand side of the dashboard.
2. You will then be greeted with the 'Manage Pull Zones' page. Please click 'Add Pull Zone' at the top right.
3. You will now be on the 'Add Pull Zone' page. This is where you will complete the creation of your pull zone, as well as specify settings such as pricing tier, origin type and pull zone name.
Let's break down what each means.
Pull Zone Name
The pull zone name is the name that will be used for the default hostname of the pull zone. For example, if we name the pull zone 'pullzoneguide', the hostname will be 'pullzoneguide.b-cdn.net'. This is the hostname that would then be used for assets to be loaded through the CDN. If you are using a custom hostname after creation, this will not be public to users.
bunny.net CDN allows you to configure an origin from an external link (i.e, your website domain), but it also allows you to configure a bunny.net Storage Zone as an origin. In this section, you will be configuring which one you wish to use.
For the majority of users, you will make use of the default 'Origin URL' selection. This means that you do not have to move any content, and the CDN will fetch directly from where your website is currently hosted.
If your website is called 'pullzoneguide.com', you would enter https://pullzoneguide.com as your Origin URL.
You will also see an option called 'Host header'. This in most instances should not be changed, and will be automatically filled based on what is entered as an 'Origin URL'. Experienced users may wish to change this if their origin expects a different hostname, such as if your Origin URL is in fact an IP address.
The second 'Origin Type' is a 'Storage Zone'. If you have a Storage Zone that contains files, and you wish to serve these files to the public, you would need to link a Pull Zone to the Storage Zone. You can do this as seen below:
Choose Tier & Pricing Zones
These settings will allow you to choose which network tier you will make use of, and their configurations depending on what is configured. By default, it will select 'Standard Tier'. Let's break down what each means and what it is best for:
Standard Tier: Ideal for small files, websites. Exceptional global latency aimed at high performance solutions where every millisecond matters, such as website acceleration, ad delivery or small file delivery.
High Volume Tier: Ideal for large files / video. Aimed at cost sensitive, global high bandwidth solutions, the volume tier offers the best price performance ratio by utilizing a smaller set of high performance PoPs.
In summary, Standard is best for website asset delivery/small assets, and Volume is best for larger files/cost sensitive applications. High Volume Tier has 10 PoPs, while Standard has 114+.
If you select Standard, it will allow granularity on which regions you want enabled. This is helpful if you are looking to have more locations than Volume, but still reduce the cost of serving from regions that are more expensive.
Standard Network Tier
Please note that by disabling a pricing region, it does not mean that it will block traffic from that region. It will simply redirect traffic to the closest next available pricing zone.
Completing the creation of your pull zone
Once you have completed configuration, you can click the orange 'Add Pull Zone' button at the bottom right.
The pull zone will then create, and you will be greeted with a page that will provide instructions on how to make use of the CDN, and integrations into software such as WordPress.
If you want more detailed instructions on integrating bunny.net with a different system or plugin, you can have a look at our Integration Guides where we describe more details on setting things up.