diff --git a/deploy/Caddyfile.tmpl b/deploy/Caddyfile.tmpl index ea864e0..a82e5e3 100644 --- a/deploy/Caddyfile.tmpl +++ b/deploy/Caddyfile.tmpl @@ -1,6 +1,13 @@ # 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" diff --git a/packages/web/src/Announcement.svelte b/packages/web/src/Announcement.svelte new file mode 100644 index 0000000..18f343f --- /dev/null +++ b/packages/web/src/Announcement.svelte @@ -0,0 +1,119 @@ + + +{#if shown} +