# Wiz-War's site on a host shared with the other games of Kestrel's Hall: # setup-droplet.sh fills __HOST__ and writes it to /etc/caddy/sites/wizwar.caddy. __HOST__ { # The hall-wide notice (hall-announce on the host): one file, served by every game's site. handle_path /hall/* { root * /var/lib/hall header Cache-Control "no-store" file_server } header { Strict-Transport-Security "max-age=31536000" X-Content-Type-Options "nosniff" X-Frame-Options "DENY" Referrer-Policy "no-referrer" } # Kept to 30 rolls of 10MiB: the nightly rollup keeps the counts; the raw # lines back it for a while. Each game on the host keeps its own log. log { output file /var/lib/caddy/wizwar-access.log { roll_size 10MiB roll_keep 30 } } # A deploy restarts the game for a few seconds; the proxy holds requests # that land in that gap and keeps dialing, so a visitor waits instead of # meeting a 502. reverse_proxy localhost:8787 { lb_try_duration 30s lb_try_interval 250ms } }