Caddy snippets
To make life simpler, there are a few pre-writtens snippets accessible. These are :
handle_404— redirects errors to/404.htmlin your webrootsecure_headers— enables a strict CSP, preloaded HSTS, basic caching, and other security precautions (X-Content-Type-Options,X-Frame-Options,X-XSS-Protection,Referer-Policy)
Creating your own snippets
When creating snippets, avoid generic terms like redirs in favour of scoped names like doamattoxyz_redirs.