fix(server): client address from the page's port, stricter Chronos identity, Host networking notes

Review fixes on top of the public ports change (owner review 3):

- Settings > Network and TLS: opened over HTTPS, the client address uses the port
  the page came through (a container's 8443 published as 8444 with Public HTTPS
  port still empty showed the wrong 8443), and a "Use <port>" button fills that
  port in. Saving a Public HTTPS port other than the page's asks first, since the
  HTTPS redirect follows it at once and a typo would lock the panel's link out.
- GetInfoAsync tells Chronos from other services by stricter rules on both the
  trusted and the untrusted-certificate path: any redirect, any answer that is not
  JSON, more than 1 MB, or an error without the X-Chronos-Api header is not
  Chronos. Another service's certificate is no longer offered for trust after a
  cross-scheme redirect, an error page or a JSON 401/403/404, and a JSON 401 over
  HTTP no longer reads as a wrong password.
- The HTTP port typed without a scheme (TLS to a plain HTTP port) now gives the
  not-Chronos error instead of "the server did not answer".
- The Uploader's certificate question names the address with its port.
- A link-local IPv6 address with a zone index is refused instead of losing it.
- In a container, the first save of the settings removes HttpPort/HttpsPort from
  server.json, so the start-up warning stops; the warning says so.
- Guide, README, compose and template: with network type Host the mappings do
  nothing and CHRONOS_HTTP_PORT / CHRONOS_HTTPS_PORT move the listening ports off
  ones another service uses; the template overview is back to two sentences.
- BRIEF, DECISIONS and CHANGELOG updated; en/it strings added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-04 10:28:08 +01:00
1 parent 369e754bec
commit 0aa2fb8135
19 files changed
+303 -67

No files matched your search

+12 -3
View File
@@ -10,7 +10,10 @@ commits follow Conventional Commits (release notes are generated from them by `C
(owner review 3). The admin panel's Settings › Network and TLS listed the container's ports (8080, 8443) as if
clients used them. In a container it now shows them read-only as *Container HTTP port* and *Container HTTPS port*,
followed by *Public HTTP port* and *Public HTTPS port* (the host ports; empty: the same as the listening ports) and
a *Client address* with Copy: exactly what to type in Chronos and in the Uploader.
a *Client address* with Copy: exactly what to type in Chronos and in the Uploader. Opened over HTTPS, the client
address uses the port the page came through, and when the saved one differs a *Use …* button fills it in as the
Public HTTPS port. Saving a Public HTTPS port other than that one asks first, since the panel's link follows it at
once.
- An address typed without a port (`192.168.1.20`, `nas.local`) now means port 8443, as the placeholder shows;
`https://name` alone still means 443 (a reverse proxy), and a typed port is kept. Addresses saved earlier keep their
port.
@@ -18,13 +21,16 @@ commits follow Conventional Commits (release notes are generated from them by `C
sign-in page, a 404 or 401, JSON of another kind) now says *No Chronos server answers at …; check the port*, naming
the address with its port. Before, JSON of another kind passed as a server (the Uploader then sent it the
password), a 401 read as a wrong password, and another service's self-signed certificate was offered for trust;
that certificate is now never offered.
that certificate is now never offered (redirects of any kind, error pages, JSON errors without Chronos's header and
oversized answers included). The HTTP port typed without a scheme (`192.168.1.20:8087`) gives the same message
instead of *The server did not answer*. The Uploader's certificate question names the address with its port.
- A link-local IPv6 address with a zone (`fe80::1%12`) is refused as an invalid address instead of losing its zone.
### Changed
- The public ports are server settings: edited in the admin panel and applied at once to LAN discovery and the
redirect to HTTPS, or set by `CHRONOS_PUBLIC_HTTP_PORT` / `CHRONOS_PUBLIC_HTTPS_PORT`, which lock them. In a
container the listening ports change only through `CHRONOS_HTTP_PORT` / `CHRONOS_HTTPS_PORT`; a port saved for them
in `server.json` is ignored, with a warning in the log.
in `server.json` is ignored, with a warning in the log, and removed at the next save of the settings.
- The Unraid template and the compose file have *Public HTTP port* (`CHRONOS_PUBLIC_HTTP_PORT`) next to *Public HTTPS
port*; the port descriptions say to enter the same host port there. LAN discovery's tooltip, the template and the
user guide say that discovery leaves a container only with network type *Host*: on *Bridge*, type the client
@@ -35,6 +41,9 @@ commits follow Conventional Commits (release notes are generated from them by `C
HTTP port* and *Public HTTPS port* to the host ports the template maps (for example 8087 and 8444), or, after the
update, enter them in the admin panel's Settings › Network and TLS. Then connect Chronos and the Uploader to the
*Client address* shown there (for example `https://192.168.1.20:8444`).
- Network type *Host* (for LAN discovery) ignores the port mappings: the server listens on the host's 8080 and 8443.
If another service uses either, add the variable `CHRONOS_HTTP_PORT` or `CHRONOS_HTTPS_PORT` with a free port first,
and leave the public ports empty.
## [0.1.0-rc.8] — 2026-11-03