Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions ops/muse-status/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
muse.adiker.eu {
header >Alt-Svc "h3=\":8443\"; ma=2592000"
@health-options {
path /health
method OPTIONS
Expand Down Expand Up @@ -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"
Expand Down
Loading