Custom CNAME
Custom CNAME
Custom CNAME is a premium delivery feature that allows you to format Filestack URLs with a custom domain. By using the CNAME feature, you can replace the base Filestack domain with a CNAME of your choice on your own fully qualified domain name.
For example, when a user is looking to access a file, instead of seeing cdn.filestackcontent.com, they can see cdn.YOUR-FDQDN.com.
The current path:
https://cdn.filestackcontent.com
It turns into this:
https://cdn.YOUR-CNAME.com
The custom CNAME feature can be useful if you expose your Filestack URLs to customers or if you need all your assets to be derived from a personalized domain. This feature also allows you to control file access by setting a security policy; add the policy to your website’s cookie generation logic instead of in the delivery URL paths. For example, if the URL is shared, Filestack first verifies the cookie before serving the requested file.
When this feature is enabled, it requires that we add your domain to our managed wildcard SSL certificate in the Filestack CDN and that you add the required DNS records for each Filestack service you intend to use.
The custom CNAME works for delivery as well as for ingress traffic, such as when making requests to our API endpoints. For instance, you can configure the JavaScript API client to use your CNAME for all outgoing requests by setting the client’s cname option, as shown in the example below.
const options = { cname: 'fs.mydomain.com' };
const client = filestack.init('apikey', options);
Please contact sales for more information on how to set up a custom CNAME for your application.