fix(server): public ports as settings, container port lock and client address; clients default to 8443 and name non-Chronos servers

The owner's Uploader could not connect: the panel showed the container's
listening ports (8080/8443) as if clients used them, the public ports were
only environment variables (CHRONOS_PUBLIC_HTTP_PORT not even in the Unraid
template), and the clients mapped a bare host to 443, where another service
answered.

- Public HTTP/HTTPS ports are settings (server.json, or locked by
  CHRONOS_PUBLIC_*) and apply at once; ServerSettingsDto gains appended
  PublicHttpPort, PublicHttpsPort and InContainer members.
- In a container the listening ports are fixed by the template: locked in the
  panel, and saved values from earlier versions are ignored with a warning.
- Settings > Network and TLS shows the client address with a Copy button; the
  discovery tooltip says a container needs network type Host.
- ChronosAddress (shared by Chronos and the Uploader): no scheme and no port is
  https on 8443, https:// keeps 443, a typed port is kept, IPv6 is bracketed.
- GetInfoAsync throws NotChronosServerException for answers that are not a
  Chronos server; another service's certificate is never offered for trust
  and no credentials are sent to it. Both clients name the address asked.
- Unraid template, compose file, user guide, README, BRIEF, DECISIONS,
  CHANGELOG (with an Unraid upgrade note) and ARCHITECTURE 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 09:53:49 +01:00
1 parent 9b24cf74fc
commit 369e754bec
33 files changed
+862 -82

No files matched your search

+31
View File
@@ -5,6 +5,37 @@ commits follow Conventional Commits (release notes are generated from them by `C
## [Unreleased]
### Fixed
- Chronos and the Uploader could not reach a server in a container whose ports are published as other host ports
(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.
- 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.
- An address that answers but is not a Chronos Server (another service on that port: a web page, a redirect to its
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.
### 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.
- 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
address.
### Upgrade note for Unraid
- Edit the container: set *Repository* from `…/chronos-server:nightly` to `…/chronos-server:latest`, and set *Public
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`).
## [0.1.0-rc.8] — 2026-11-03
### Added