Amazon CloudFront is one of the most popular CDN for various users since it is a part of Amazon Web Service. By the power of AWS data centers all around the world, CloudFront could provide static content faster than ever. It is also possible to apply an SSL certificate along with the CDN by using Amazon Certificate Manager.
Since the CloudFront requires a separated domain configuration to make the CloudFront itself to point the original server, you should run the
hollaex prod command to apply a new temporary domain for the web.
Please check the website connectivity by accessing it through the web browser.
Go the AWS CloudFront console, and create a new distribution.
Fill the form up with the temporary domain you've set for the web.
You'll able to see a default
.cloudfront.net domain which is allocated to your distribution. Make sure to check the connectivity of it to your website before you proceed.
Once you confirmed the connectivity of the domain, go to the edit page of your CloudFront distribution, and set the CNAME and SSL certificate for it. Type the permanent domain you want to use for the website, and bind the correct SSL certificate for the domain. You can either import or issue a new SSL certificate through the Amazon Certificate Manager.
Don't forget the set a CNAME record on your DNS with the CloudFront default domain name. (CNAME example.com <-> example.cloudfront.net.)
Please check that you are able to access your website with the permanent domain you've set on the CloudFront with proper SSL encryption.