1.4 KiB
1.4 KiB
iNDX Deploy Security Headers
The website repo does not own the live routing or Caddy configuration. Apply equivalent headers at the external proxy, CDN, or static hosting layer that serves https://indx.earth/.
Recommended security headers:
Strict-Transport-Security: max-age=31536000; includeSubDomains; preloadX-Content-Type-Options: nosniffReferrer-Policy: strict-origin-when-cross-originPermissions-Policy: camera=(), microphone=(), geolocation=()Content-Security-Policy: default-src 'self'; script-src 'self' https://www.googletagmanager.com https://www.google.com https://www.gstatic.com 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' https://www.google-analytics.com https://www.googletagmanager.com; frame-src https://www.google.com; frame-ancestors 'self'; base-uri 'self'; form-action 'self'
Recommended cache and compression behavior:
- HTML pages:
Cache-Control: public, max-age=300 - Root discovery files such as
robots.txt,sitemap.xml,llms.txt,agents.md,skills.md, andai-index.json:Cache-Control: public, max-age=300 - Static assets under
/assets/:Cache-Control: public, max-age=31536000, immutable - Health checks under
/healthz/:Cache-Control: no-store - Enable gzip, Brotli, or zstd compression at the serving layer for text, HTML, CSS, JavaScript, JSON, XML, and Markdown responses.