Monorepo for Aesthetic.Computer aesthetic.computer
at main 49 lines 1.5 kB view raw
1# Global options - enable HTTP/3 on all HTTPS sites 2{ 3 servers { 4 protocols h1 h2 h3 5 } 6} 7 8:8111 { 9 root * public 10 file_server # browse 11 12 # Disable compression to avoid chunked encoding issues with Netlify Dev proxy 13 # The proxy can sometimes fail with ERR_INCOMPLETE_CHUNKED_ENCODING 14 # ERR_CONTENT_LENGTH_MISMATCH can occur when Accept-Encoding triggers 15 # compression somewhere in the proxy chain 16 # encode zstd gzip 17 18 # Strip Accept-Encoding from requests to prevent any compression attempts 19 request_header -Accept-Encoding 20 21 @wasm path *.wasm 22 header @wasm Content-Type "application/wasm" 23 24 @js path *.js *.mjs 25 header @js Content-Type "application/javascript; charset=utf-8" 26 27 # Aggressive caching disabled for dev (instant updates) 28 header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0" 29 header Pragma "no-cache" 30 header Expires "0" 31 header X-Content-Type-Options "nosniff" 32 33 # Enable CORS for local development 34 header Access-Control-Allow-Origin "*" 35 header Access-Control-Allow-Methods "GET, POST, OPTIONS" 36 header Access-Control-Allow-Headers "*" 37 38 # Force Connection: close to prevent keep-alive truncation issues 39 # through Netlify dev HTTPS proxy (fixes ERR_CONTENT_LENGTH_MISMATCH) 40 header Connection "close" 41 42 # Silo data dashboard proxy → localhost:3003 43 handle /silo.aesthetic.computer { 44 redir /silo.aesthetic.computer/ permanent 45 } 46 handle_path /silo.aesthetic.computer/* { 47 reverse_proxy localhost:3003 48 } 49}