Table of Contents
Please note that the CDN functionality is now unavailable for new domains due to a recent decision by Cloudflare to deprecate the API which was used to provide this service.
We would therefore recommend creating an account with Cloudflare directly and using their nameservers to enable the use of a CDN.
We apologise for any inconvenience this may cause.
The below steps in this article are therefore no longer accurate, but are available for reference:
Sonassi provide a high performance CDN as standard with MageStack that you can take advantage of, with no additional cost. There's a few prerequisites to get set up where this article will walk you through the process.
Transferring DNS
For the Sonassi CDN to function, we need to have full control of the DNS for your domain. If your domain is already set up with Sonassi, you can skip this step.
-
Verify your nameservers here by entering your domain name under "hostname" and clicking
NS
.- If you see
target: ns1.sonassi.com
, your DNS is already with Sonassi - If you do not see the Sonassi nameservers, then you need to begin the process of transferring your DNS
- If you see
-
Log in to my.sonassi.com and select
Domains
. Enter your domain name and click "Add Domain" -
You need to now log in to your current DNS provider to obtain a full copy of the DNS records for your domain, so that you can copy and re-enter the entries in the Sonassi DNS zone for your domain.
Take care and ensure you fill in the fields to match exactly, then save the zone.
-
Please note that in addition to the DNS records from your current DNS provider, you will also need to add an extra three NS records in the Sonassi control panel, using the following three subdomains:
ns1.sonassi.com ns2.sonassi.com ns3.sonassi.com
-
-
Wait approximately 15 minutes for our Our DNS platform to synchronise the changes and add your domain, then verify they are correct using the earlier tool (this time selecting
Sonassi (Authorative Only)
as the resolver). -
Once you have verified your DNS, change your nameservers to Sonassi within your domain provider's control panel:
ns1.sonassi.com ns2.sonassi.com ns3.sonassi.com
Enable CDN
-
Log in to my.sonassi.com,select
Domains
, select your domain and select the CDN tab. -
Enable the CDN service by changing the status to on and saving the changes.
-
Three new DNS records will automatically be created and a SSL certificate generated for each (this can take between 24-72 hours to complete).
- cdn.example.com
- cdn.staging.example.com
- cdn.dev.example.com
-
After waiting 24-72 hours, verify if the CDN is via on https by loading the URL in a web browser (eg. https://cdn.example.com). If after 3 days your SSL certificate has not been issued, please raise a support ticket so our team can investigate and help.
If the page is loading, the final stage is to configure your application.
Configuring your application
Once the DNS has been configured and CDN service enabled, you can now set up your application to use the new CDN enabled service on cdn.example.com