Repository navigation
feat(server): support multiple endpoints with health checks and failover - #1355
Merged
Merged
Conversation
everpcpc
force-pushed
the
feat/server-endpoints
branch
from
November 28, 2026 11:48
f259e16 to
e70999e
Compare
A saved server can now hold multiple addresses (e.g. public URL, LAN, or Tailscale) with optional labels and failover priority, so switching networks no longer requires editing the URL or maintaining duplicate instances with separate local caches and downloads. - Settings, the Server page, the server switcher, and Edit Server show live reachability and latency for each address inline (`● host · 32 ms`), omitting the URL scheme in display text. - Switching addresses on the active server establishes a fresh session on the target host and reconnects SSE without logging out, reloading libraries, or interrupting an open reader. - When the active address becomes unreachable at launch, during requests, or while recovering from auto-offline mode, KMReader automatically tries the remaining addresses in priority order and enters offline mode only if all of them are unreachable. Late responses or failures from a previous address are ignored so they cannot overwrite the new session or trigger a false offline transition. - The currently active server can now be edited in place (deletion remains limited to inactive servers), and backup addresses can be added even while temporarily unreachable. Side effects: - Adds GRDB migration `00015_add_instance_endpoints` (`komga_instances.endpoints_raw`). - Adds localized server-address and endpoint-status strings across all 10 supported languages. - Removes two unused `pageIndex` locals in the EPUB scroll wrappers that emitted compiler warnings. - Includes `make bump` to build 693.
everpcpc
force-pushed
the
feat/server-endpoints
branch
from
November 28, 2026 12:00
e70999e to
fd622e4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
/api/v2/users/mecheck and show live reachability and latency badges in Settings, the Server page, the server switcher, and Edit Server.Why
Users often reach the same Komga server through different routes depending on where they are (e.g. public domain vs. Tailscale). Previously they had to edit the single server URL (triggering a full logout/re-login) or add duplicate instances with separate local caches and offline downloads.
Closes #1344
Validation
make formatmake build(iOS, macOS, tvOS — all succeeded)make localizeand./misc/translate.py list(no missing translations across all 10 languages)Server unreachablewhile keeping the healthy address active.200 text/htmlendpoint is reportedUnreachablerather than healthy.Connected via …), including late failures from the old address arriving 11s after the switch without triggering offline mode.Includes
make bumpto build 693.