whaletown.novamailio.com { log { output file /var/log/caddy/whaletown-access.json { roll_size 20MiB roll_keep 5 roll_keep_for 168h } format json } encode zstd gzip root * /var/www/whaletown/site header { X-Content-Type-Options nosniff Referrer-Policy strict-origin-when-cross-origin } @play path /play/* header @play { Cross-Origin-Opener-Policy same-origin Cross-Origin-Embedder-Policy require-corp } @immutable_pack { path /play/packs/*.pck file {path} } header @immutable_pack { Cache-Control "public, max-age=31536000, immutable" Content-Type "application/octet-stream" } @pack_manifest path /play/packs/manifest.json header @pack_manifest Cache-Control "no-cache" @runtime path /play/index.js /play/index.wasm /play/index-*.pck /play/index.audio*.js header @runtime Cache-Control "public, max-age=14400" @html path / /index.html /play /play/ /play/index.html header @html Cache-Control "no-cache" @play_without_slash path /play redir @play_without_slash /play/ 308 handle_path /play/* { root * /var/www/whaletown/site/play file_server } @game path /game* handle @game { reverse_proxy http://124.221.77.216 { header_up Host 124.221.77.216 } } @location path /location-broadcast handle @location { reverse_proxy http://124.221.77.216 { header_up Host 124.221.77.216 } } @notice path /ws/notice handle @notice { reverse_proxy http://124.221.77.216 { header_up Host 124.221.77.216 } } @account_assets path /assets/account/* handle @account_assets { reverse_proxy http://124.221.77.216 { header_up Host 124.221.77.216 } } redir /api /api/ handle /api/* { reverse_proxy http://124.221.77.216 { header_up Host 124.221.77.216 } } handle { file_server } }