Install Semanto on nginx
Three configuration files. nginx sends agents' requests to your signed copy and serves everything else as before.
Steps
- Download the package below and copy semanto-maps.conf and semanto-proxy.conf to /etc/nginx/.
- Inside http, add include /etc/nginx/semanto-maps.conf; and paste the contents of semanto-server.conf into your server block.
- Replace example-inc with your Trooth ID in both places, and point location @semanto_host at what your site serves.
- Run nginx -t, reload nginx, then press Check my site in the dashboard.
Download
Download the nginx package (zip, 5 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.
sudo nginx -t && sudo systemctl reload nginxcurl -s -H "Accept: text/markdown" https://example.com/ | headIf Trooth is slow or down, your site keeps answering: what the adapter does.