Bunny Storage

How to setup Bunny Storage with a CNAME domain and CDN

Bunny Storage offers a convenient way to manage and store your files with the option to use a custom hostname through a CNAME domain together with their CDN service. This concise guide will walk you through the steps to set up Bunny Storage with a CNAME domain for seamless file storage and access.

  1. Create a Bunny Account: Begin by signing up for a Bunny.net account if you haven’t already done so.
  2. Add a Storage Zone: Once you’re logged in, navigate to the Storage Tab and select “Add Storage Zone.”

    Add Bunny Storage Instance
  3. Configure Storage Zone: Provide a name for your Storage Zone, select replication zones, and set other desired configurations.
  4. Create a Pull Zone: Inside your newly created Storage Zone, click on the “+ Add Pull Zone” button to add a Pull Zone for file retrieval.
  5. Select Storage as Source: Ensure that you choose the Storage Zone you created as the source for this Pull Zone.

    Add pull zone for Bunny Storage
  6. Custom Hostname: After the Pull Zone has been successfully created, assign a custom hostname to the zone, such as “cloud.yourdomain.com.”
  7. Create a CNAME Record: At your domain provider, create a CNAME record that points to the Bunny Storage URL provided to you. For instance:
    CNAME record: yourchosenname.b-cdn.net
    This step allows you to use your custom hostname to access Bunny Storage.
  8. Wait for CNAME Adjustment: Be aware that adjusting the CNAME can take some time, typically ranging from a few minutes up to a day. During this time, the changes will propagate across the internet.
  9. Generate SSL Certificate: Once the CNAME adjustment is complete, check the SSL switch on Bunny to generate an SSL certificate for your custom hostname. This ensures secure access to your storage.
  10. Find FTP/SFTP Credentials: To upload files to your Storage Zone, navigate back to “Storage => FTP.” There, you will find the FTP or SFTP credentials to use for file uploads.
  11. Access Your Files: Finally, you can access your uploaded files by visiting your custom hostname, for example: https://cloud.yourdomain.com/youruploadedfile.txt.

Bunny SFTP / API uploading Cost

Bunny confirmed to me via email that uploading files via SFTP / API does not cost anything (July 2023, could be subject to change, hopefully not, since that would not be fully fair). Downloading things via Bunny Storage gives bandwidth charges of course.

By following these straightforward steps, you can set up Bunny Storage with a CNAME domain, allowing you to manage and access your files effortlessly.

Using a CDN endpoint behind your storage may cost extra.

Enjoy the benefits of seamless file storage and retrieval with Bunny Storage.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top