Setting up the BunnyCDN integration

Simply Static allows exporting your static website to BunnyCDN without using GitHub. This is one of the easiest ways to get your static website online.

BunnyCDN

BunnyCDN is quite a popular choice for a CDN as it combines fair pricing with incredibly good performance and 99.99% availability across the entire globe. It serves your website for a fraction of the costs of a traditional web host and provides also better performance and a lot more security due to the static deployment with Simply Static.

Configuration

You can create a free account at bunny.net. Once you have on, go to “Account Details” to grab your API key:

Setting up the BunnyCDN integration 1

Pull Zone

Before we head back to the Simply Static settings, let’s move to “Storage Zones” and create one:

Setting up the BunnyCDN integration 2

Connect Pull Zone

This will take a short moment, but once it’s finished we click on “Connected Pull Zones”, add a name for the new pull zone and save the settings.

Setting up the BunnyCDN integration 3
Setting up the BunnyCDN integration 4

Copy the Access Key

The last bit of information we need is the Access Key. Go to your storage zone and click on “FTP & API access”. You will find two passwords here “Password” and “Read-only Password”, make sure you get the value from “Password”:

Setting up the BunnyCDN integration 5

Setup in Simply Static

Now we have everything set up in BunnyCDN and we can move back to Simply Static. Head over to Simply Static -> Settings -> Deployment-> BunnyCDN and fill out the details:

Setting up the BunnyCDN integration 6

CDN Provider:

For now, there is only BunnyCDN available. However, this may change in the future, so make sure you selected “BunnyCDN”.

CDN API Key:

This is the general API key from BunnyCDN. You can get this from the account area of your BunnyCDN account.

Storage Host

Depending on your geographical location, the storage host may differ from what you can see on the screenshot. You can quickly find out the correct storage zone in the BunnyAPI docs here: https://docs.bunny.net/reference/get_-storagezonename-path-filename

You will find the correct storage host in the example at the top:

Setting up the BunnyCDN integration 7

CDN Access Key

That’s the “Password” value you copied from your storage zone -> FTP & API access. The Access key is required to upload and modify files in your BunnyCDN storage zone.

Directory:

This is optional. If you like to store your website in a subdirectory, add it here. You don’t need to add any slashes, just the name of the directory.

404:

If you have created a custom 404 error page in WordPress you can add the relative path to it here. Simply Static will automatically transform it to a readable file for BunnyCDN and configure the settings accordingly.

Once you filled out all the details, save the settings and we are ready to move on.

Changing Delivery Method

The last step is to change the delivery method in Simply Static -> Settings -> General to “CDN”:

Setting up the BunnyCDN integration 8

That’s it. Now as soon as you run a new static export, Simply Static will push the files to BunnyCDN automatically.