In order to activate the EdgeEngine you will need to first make sure you have our CDN service enabled. You can either purchase CDN on its own or within one of our Edge Delivery Stacks (recommended).
To learn more about EdgeEngine please be sure to read our EdgeEngine Overview.
Once CDN is enabled and you have created a CDN site, simply click the EdgeEngine tab on a CDN site.
Next, you will need to activate the EdgeEngine on your Stack. Please note that activating the EdgeEngine will apply to your entire Stack (this means all of your CDN sites within this Stack can use the EdgeEngine at no additional cost).
You will now see the EdgeEngine overview which shows the statistics for all scripts on the specific CDN Site you're looking at. You will also see a list of existing scripts and an "Add Script" button that will allow you to create your first script.
Create your first Script
Now that we have the EdgeEngine enabled, let's create your first script. Simply click the Add Script button above and you will be taken to our easy to use Code Editor.
That's it! Once you click Create Script your script will be deployed to the Edge within 2 seconds. You will then be able to access your script using the route you provided. In the example above, it would be found at http(s)://yourdomain.com/demo-script or you can also test your scripts using the CDN URL for your Site.
Each script will be restricted to the following limits:
5ms CPU Execution Time
15s Wall Time
If you require more CPU/RAM for your script(s), please contact Sales and we'll be happy to discuss increasing that for your account.
Here are some examples of scripts you can create with the EdgeEngine:
- Static response
- Response Body modification
- IP Firewall at the Edge
- wp-login protection
- Robots.txt response
- Add headers to response