Deploy to Bunny CDN

What is needed: Simply Static Pro

Simply Static allows you to export your static website to BunnyCDN, which 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 worldwide.

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:

Storage

Before we head back to the Simply Static settings, let’s move to “Storage” and create a storage zone where we can upload our static files:

You will be redirected to the setup page for the storage zone.

There are only three things that are important and need to be configured:

  • Storage Zone Name (the name of your website without TLD)
  • Storage Tier (you want to use Standard)
  • Main Storage Region (the region closest to your location

Scroll down the page and click on Add Storage Zone.

CDN

Before we get deeper into the storage zone settings, let's move to CDN.

You can set up Pull Zones, which are where you can set up things like custom domains, SSL, and caching.

Once you click on Add Your First Pull Zone you will be redirected to the setup page.

There are a few settings that are important:

  • Pull Zone Name (the name of your project, can be the same as the storage zone)
  • Origin Type (Choose Storage Zone and select your created storage zone from the list)
  • Choose Tier (Keep it Standard)
  • Pricing Zones (that's optional, but you can decide where to replicate your website)

Now, move back to the storage zone to get the Access Key and Hostname.

Access Key and Storage Zone

Move to Storage and select the newly created storage zone. Within the details view, go to FTP & API Access, and you should see something like this:

You need to copy the Hostname and the Password.

Ensure you copy the Password and NOT Read-only Password.

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 -> Deploy-> BunnyCDN and fill out the details:

Bunny CDN API Key:

This is BunnyCDN's general API key. You can get it from your BunnyCDN account area.

Storage Host

This is the Hostname you have copied from Storage -> Storage Zone -> FTP & API Access -> Hostname.

Bunny CDN Access Key

This is the Password you have copied from Storage -> Storage Zone -> FTP & API Access -> Password.

Pull Zone

This is the Pull Zone Name. You can find it within your account under CDN.

Ensure you don't copy the full URL, just the name.

Storage Zone

This is the Storage Zone Name. You can find it within your account under Storage.

Ensure you don't copy the full URL, just the name.

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 directory's name.