From e178357352589d69363f3c35a8513197523fc5b1 Mon Sep 17 00:00:00 2001 From: s950tx16wasr10 Date: Mon, 18 May 2026 18:31:45 +0200 Subject: [PATCH] feat: enable status banner via same-origin /serverinfo.json The status banner has been showing "server status unavailable (endpoint not configured)" since launch. The serverinfo.json producer (serverinfo-updater) and the same-origin proxy on reduxstation.com (via infrastructure/docker/caddy/Caddyfile) are both running, so the website just needs to point at the endpoint. - _data/site.yaml: status_endpoint = "/serverinfo.json" - _data/servers.yaml: identifier "redux" -> "reduxstation" so it matches what serverinfo-updater writes (SERVER_IDENTIFIER from globals.env). gamebanners.js renderBanner does document.getElementById(server.identifier), so the id must match exactly or the banner stays in error state. Co-Authored-By: Claude Opus 4.7 (1M context) --- _data/servers.yaml | 2 +- _data/site.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/_data/servers.yaml b/_data/servers.yaml index 44dc3e7..0540c56 100644 --- a/_data/servers.yaml +++ b/_data/servers.yaml @@ -1,3 +1,3 @@ -- identifier: redux +- identifier: reduxstation name: ReduxStation 13 public_address: reduxstation.com:1337 diff --git a/_data/site.yaml b/_data/site.yaml index 8f888db..ac07271 100644 --- a/_data/site.yaml +++ b/_data/site.yaml @@ -5,7 +5,9 @@ byond_url: byond://reduxstation.com:1337 github_repo: https://github.com/ReduxStation/website # Endpoint that returns server status as JSON in the tgstation13.org/serverinfo.json shape. -# Leave blank until the endpoint exists; the page will show "server status unavailable" gracefully. -status_endpoint: "" +# Same-origin path — Caddy on the production host reverse-proxies this to +# the internal serverinfo-updater (see infrastructure/docker/caddy/Caddyfile). +# Set to "" to disable the poller and show "server status unavailable". +status_endpoint: "/serverinfo.json" poll_interval_ms: 4000