AWS CloudFront
In case you place your website behind AWS CDN - CloudFront, it is very easy to connect it to Contimo advertorial hosting by following this simple guide.
Before starting, you will to get you website ID - alphanumeric string like 66225b6c239b4621c60a1a01a
and Contimo token. You can find these valus in Websites management section of the Contimo app.
Step 1 - Create custom origin
Open you CloudFront Distributions list and open your website's distribution settings. On the Origins tab press "Create" button
In the appeared form, provide the following input:
- Origin domain:
advertorials.contimo.app
- Protocol:
HTTPS only
- Origin path:
/websites/YOUR_WEBSITE_ID
(e.g./websites/66225b6c239b4621c60a1a01a
) - Name:
advertorial.contimo.app
(default) - Custom header:
- Name:
X-Contimo-Token
- Value: website's Contimo token
- Name:
Step 2 - Create behavior
On the Behaviors tab, press "Create" button and provide the following details:
- Path pattern:
/advertorials/*
- Origin and origin groups:
advertorial.contimo.app
- Cache policy:
Caching Disabled
t - Origin request policy:
AllViewerExceptHostHeader
Once, done and your CloudFront is redeployed, you can test if it works by entering https://your-site.com/advertorials/test-contimo-integration
page.