Step 4: Select your Cloudflare plan
You can go with “Free Website” - but check out their offerings for Pro, Business and Enterprise Website as well.
Step 5: Change your nameservers
Attention: Do NOT use the nameservers in the image below! Use the name servers provided by Cloudflare at this step.
At the place where you bought your domain you should be able to switch your nameservers - usually that can be found in the DNS settings for that domain. Your website will not experience any downtime when you change your nameservers. However the transfer process can take up to 24 hours.
Step 6: Add your custom domain to your Storyblok Space
In your space setting you should be able to add your domain. At this point it will be:
www.your_domain.com simply press safe and you’re ready to go.
Bonus Step: Fine tuning the Cloudflare settings
We can even fine tune some settings of Cloudflare directly:
- Always use HTTPS
- Automatic HTTPS Rewrites
There are even more options available - but would be way to much for this tutorial. The descriptions in Cloudflares application holds all information you will need to know about.
Always use HTTPS
Navigate to the Crypto area and turn on the “Always use HTTPS” to have your site redirected from http to https. This will allow Cloudflare to reply to all requests for URLs that use “http” with a 301 redirect to the equivalent “https” URL. If you only want to redirect for a subset of requests, consider creating an “Always use HTTPS” page rule.
Automatic HTTPS Rewrites
Scroll down till you see “Automatic HTTPS Rewrites” and also turn this option on. If your site contains links or references to HTTP URLs that are also available securely via HTTPS, Automatic HTTPS Rewrites can help. If you connect to your site over HTTPS and the lock icon is not present, or has a yellow warning triangle on it, your site may contain references to HTTP assets (“mixed content”).
Congrats! You can grab a tea or coffee now.
Time to wait - as Cloudflare has already triggered all your changes - the transfer process can still take up to 24 hours. If you’re facing troubles with Cloudflare you can reach out at their outstanding support.
I hope you enjoyed this tutorial - I would be happy to receive feedback in the comments below!