# /etc/caddy/Caddyfile — Direct Per-Repository Install Directory Routing (HTTP/3 + Precompressed Brotli-11) { servers { protocols h1 h2 h3 } } www.hyperstitionstud.io { redir https://hyperstitionstud.io{uri} permanent } hyperstitionstud.io { @compressible not path *.gz *.br *.tgz *.xz *.zst *.zip *.woff2 *.png *.mp3 *.pdf encode @compressible zstd gzip # Zero-PII Route Counter Log (Strategy 3A — remote_ip, client_ip, Cookie, User-Agent, and Referer deleted) log { output file /var/log/caddy/hyperstition-access.json { roll_size 50MiB roll_keep 3 } format filter { wrap json fields { request>remote_ip delete request>client_ip delete request>headers>Cookie delete request>headers>User-Agent delete request>headers>Referer delete } } } header { Alt-Svc "h3=\":443\"; ma=2592000" Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" X-Content-Type-Options "nosniff" Referrer-Policy "strict-origin-when-cross-origin" -Server } @immutable_media path *.pdf *.png *.mp3 *.graphml *.gexf *.canvas *.woff2 header @immutable_media Cache-Control "public, max-age=86400, stale-while-revalidate=604800" @html_js path *.html *.js *.json header @html_js Cache-Control "public, max-age=0, must-revalidate" # 1. Repo Install Dir: encyclopedia-knowledge-graph -> https://hyperstitionstud.io/graph/* handle_path /graph/* { root * /var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph file_server { precompressed br gzip } } redir /graph /graph/ permanent # 2. Repo Install Dir: technocapital-singularity-zoology -> /encyclopedia/*, /zoology/* & sibling PDF target handle_path /encyclopedia/* { root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology/encyclopedia file_server { precompressed br gzip } } handle_path /technocapital-singularity-zoology/* { root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology file_server { precompressed br gzip } } handle_path /zoology/* { root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology file_server { precompressed br gzip } } # 3. Repo Install Dir: ingglish-hyperdope-gematria -> /archive/* handle_path /archive/* { root * /var/www/hyperstitionstud.io/repos/ingglish-hyperdope-gematria/ingglish-aq-archive file_server { precompressed br gzip } } # 4. Repo Install Dir: haiperdohp-jemaytreeah -> /calc/* (Confluence of hyperdope-ci-build & hyperdope-gematria) handle_path /calc/* { root * /var/www/hyperstitionstud.io/repos/haiperdohp-jemaytreeah file_server { precompressed br gzip } } redir /calc /calc/ permanent # 5. Repo Install Dir: ingglish-hyperdope-ci -> /ci/* (4-Gate CI Audit & Onboarding PDF) handle_path /ci/* { root * /var/www/hyperstitionstud.io/repos/ingglish-hyperdope-ci file_server { precompressed br gzip } } redir /ci /ci/ permanent # 6. Stateless Read-Only MCP (/mcp) & REST API v1 (/api/v1/*) HTTP Server -> 127.0.0.1:8095 @mcp_and_rest_api path /mcp /mcp/* /api/v1 /api/v1/* handle @mcp_and_rest_api { reverse_proxy 127.0.0.1:8095 } # Long-Term Plan (Disabled for Now): /gallery & /gallery/* Artifact Gallery # See docs/PLAN-MEMETIC-GALLERY-SUBPAGE.pdf to re-enable when activated. @gallery_disabled path /gallery /gallery/* handle @gallery_disabled { respond "404 Not Found" 404 } # 7. Repo Install Dir: hyperstitionstudio-core -> /schemas/*, /learn/* & Root Portal Homepage (/) handle_path /schemas/* { root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/schemas file_server { precompressed br gzip } } handle { root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/site file_server { precompressed br gzip } } }