Caddyfile (684B)
1 (security_headers) { 2 # Allow HTTPS scripts and analytics requests, including Cloudflare's injected scripts. 3 header >Content-Security-Policy "default-src 'self'; style-src 'self'; img-src 'self'; script-src 'self' https: 'unsafe-inline'; connect-src 'self' https:; frame-src 'self' https:; object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'" 4 header >Strict-Transport-Security "max-age=31536000" 5 header >X-Content-Type-Options "nosniff" 6 header >Referrer-Policy "no-referrer" 7 } 8 9 cv.lindholmlabs.com { 10 import security_headers 11 reverse_proxy cv:8000 12 } 13 14 git.lindholmlabs.com, http://localhost { 15 import security_headers 16 root * /www/current 17 file_server 18 }