# Sample Caddyfile — samplefiles.com example.com { encode zstd gzip handle /api/* { reverse_proxy localhost:3000 } handle { root * /var/www/example file_server } header { Strict-Transport-Security "max-age=31536000" X-Content-Type-Options nosniff } } www.example.com { redir https://example.com{uri} permanent }