Install Semanto on Fastly
A Compute service in front of your site answers agents with your signed copy and sends every other request to your origin.
Steps
- Download the package below and unzip it.
- In the fastly-compute folder, run npm install and then fastly compute publish.
- When asked, enter your website's hostname for the origin backend, leave api.trooth.co for the trooth_api backend, and enter your Trooth ID for TROOTH_ID.
- Point your domain at the new service, then press Check my site in the dashboard.
Download
Download the Fastly package (zip, 19 KB). It holds the files the steps name.
Check it works
From any terminal. The answer should be markdown with Signature and Trooth-Semanto-Version headers.
curl -s -H "Accept: text/markdown" https://example.com/ | headIf Trooth is slow or down, your site keeps answering: what the adapter does.