Fastly CDN

Learn how to configure Fastly CDN for use with Filebase.

What is Fastly CDN?

Fastly CDN is a Content Delivery Network provider.

A Content Delivery Network is a network of servers across a diverse selection of geographic locations that help improve the speed and quality of content delivery. CDNs allow for quick transfers of content types such as HTML web pages, images, videos, spreadsheets, and JavaScript applications. CDNs can also help mitigate and protect websites against Distributed Denial of Service attacks (DDoS).

Learn how to connect your Filebase bucket to Fastly CDN to increase file delivery speeds to and from your bucket.

Prerequisites:

1. Login to the Fastly CDN dashboard. Select ‘Create a Delivery service’.

2. In the delivery service creation screen, enter your domain name under the ‘Domains’ tabs.

Click ‘Add’.

3. Select ‘Hosts’ on the left side menu under ‘Origins’. Enter the public URL of your Filebase bucket.

This URL will be in the format:

bucket-name.s3.filebase.com

Click ‘Add’.

4. Once your host has been added, it will be listed below. Click the Pencil icon next to the host name to edit the settings of the host.

5. Configure the following settings:

Enable TLS: Yes, enable TLS and connect securely using port 443

Verify Certificate: Yes, verify the authenticity of the TLS certificate.

SNI hostname: Match the SNI hostname to the Certificate hostname. This value identifies which certificate should be used for the request to origin.

6. Select ‘Advanced TLS options’. Configure the following:

7. Select ‘Advanced Options’ at the bottom.

8. In the advanced options, set the following configuration:

Override host: Enter the public URL of your Filebase bucket. This URL will be in the format:

bucket-name.s3.filebase.com

This step is very important. This configuration will not work otherwise this override host setting is configured.

9. Activate the configuration.

Do so by selecting ‘Domains’ in the left side menu again, then selecting ‘Activate’ in the upper right corner.

10. Test your configuration. You can test this without adding any CNAME records for your domain name by going to:

yourwebsite.com.global.prod.fastly.net/filename

where yourwebsite.com is your domain name, and filename is a file in your Filebase bucket.

If you have any questions, please join our Discord server, or send us an email at hello@filebase.com

Last updated