diff --git a/README.md b/README.md index 1fa5bce..af7ba8d 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,13 @@ Service endpoints are defined in `js/app.js`: - `https://speedtest.adiker.eu/health` - `https://muse.adiker.eu/health` +Service responses, including errors, advertise `Alt-Svc: h3=":8443"; ma=2592000` +for HTTP/3. +If that path becomes unavailable, use `Alt-Svc: clear` on all five service +domains, including error responses, and verify HTTPS over TCP. A browser that +cached the old alternative but cannot connect to receive an updated header may +need its network/alternative-service cache cleared or a fresh browser profile. + The Muse endpoint returns `200 {"status":"online"}` only when the local container is running, has logged `Ready!` after its current start, and has an established TCP connection to `gateway.discord.gg`. Otherwise it returns @@ -274,6 +281,13 @@ Endpointy usług są zdefiniowane w `js/app.js`: - `https://speedtest.adiker.eu/health` - `https://muse.adiker.eu/health` +Odpowiedzi usług, także błędy, ogłaszają dla HTTP/3 +`Alt-Svc: h3=":8443"; ma=2592000`. Jeśli ta ścieżka przestanie działać, ustaw +`Alt-Svc: clear` dla wszystkich pięciu domen usług, również w odpowiedziach +błędów, i sprawdź HTTPS przez TCP. Jeśli przeglądarka zapamiętała poprzedni +adres i nie może połączyć się z usługą, aby odebrać nowy nagłówek, wyczyść jej +pamięć sieciową/alternatywnych usług albo użyj nowego profilu przeglądarki. + Endpoint Muse zwraca `200 {"status":"online"}` tylko wtedy, gdy lokalny kontener działa, po bieżącym uruchomieniu zalogował `Ready!` i ma aktywne połączenie TCP z `gateway.discord.gg`. W przeciwnym razie zwraca diff --git a/ops/muse-status/Caddyfile b/ops/muse-status/Caddyfile index ba1397b..a5abe12 100644 --- a/ops/muse-status/Caddyfile +++ b/ops/muse-status/Caddyfile @@ -1,4 +1,5 @@ muse.adiker.eu { + header >Alt-Svc "h3=\":8443\"; ma=2592000" @health-options { path /health method OPTIONS @@ -28,6 +29,7 @@ muse.adiker.eu { respond 404 handle_errors { + header >Alt-Svc "h3=\":8443\"; ma=2592000" header { Access-Control-Allow-Origin "*" Access-Control-Allow-Methods "GET, HEAD, OPTIONS"