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

+23 -10
View File
@@ -70,9 +70,12 @@ Create the archive folder owned by `PUID:PGID` first (for example `mkdir -p <fol
empty folder, or one owned by root (as Docker creates a missing one), is given to `PUID:PGID` at start: the folder
itself, never its contents. Any other folder that user cannot write stops the container with a one-line error.
Open `http://<host>:8080/admin`, sign in as `admin` with the password from `.env` and choose a new one. Chronos
clients connect to `https://<host>:8443`; the first connection shows the server's certificate fingerprint, which the
admin panel shows under Settings so you can compare them.
Open `http://<host>:8080/admin`, sign in as `admin` with the password from `.env` and choose a new one. Chronos and
the Uploader connect to the *Client address* the admin panel shows under Settings › Network and TLS, by default
`https://<host>:8443` (an address typed without a port means 8443; `https://<name>` alone means 443, a reverse proxy).
The first connection shows the server's certificate fingerprint, which the admin panel shows under Settings so you can
compare them. An address that answers but is not Chronos (another service on that port) is reported as such, and its
certificate is never offered for trust.
- Image: `gitea.encke-hake.ts.net/balbosoft/chronos-server:latest`, the newest stable release (before the first one,
the newest pre-release); also `:<version>`, and `:nightly`, the development version rebuilt every night, not for
@@ -95,12 +98,14 @@ admin panel shows under Settings so you can compare them.
variable fixes is read-only there, and its tooltip names the variable. The compose file and Unraid template of earlier
versions set `CHRONOS_LOG_LEVEL: Information`, which now fixes both levels: remove it (compose: delete the line;
Unraid: edit the container and clear *Log level*) to choose them in the panel.
- Other host ports: when you publish the container's ports as other host ports (`18443:8443`), set
`CHRONOS_PUBLIC_HTTPS_PORT` (and `CHRONOS_PUBLIC_HTTP_PORT`) to the host ports, so the admin panel's redirect to HTTPS
and LAN discovery name the ports clients can reach.
- Other host ports: when you publish the container's ports as other host ports (`18443:8443`), keep the container
ports (8080 and 8443: in a container the admin panel shows them read-only) and enter the host ports as *Public HTTP
port* and *Public HTTPS port* in Settings › Network and TLS, or set `CHRONOS_PUBLIC_HTTP_PORT` and
`CHRONOS_PUBLIC_HTTPS_PORT`, which then lock them. They apply at once: the client address, the admin panel's
redirect to HTTPS and LAN discovery name the ports clients can reach.
- LAN discovery (`CHRONOS_DISCOVERY`, on by default) needs host networking (`network_mode: host` in compose, Network
type *Host* on Unraid): on a bridge network its broadcasts never leave the container's network. Without it, add the
server in Chronos by its address. With `network_mode: host` the name `postgres` no longer resolves: remove the
type *Host* on Unraid): on a bridge network its broadcasts never leave the container's network. Without it, type the
client address in Chronos and in the Uploader. With `network_mode: host` the name `postgres` no longer resolves: remove the
`ports` of the `chronos` service, publish PostgreSQL on loopback (`ports: ["127.0.0.1:5432:5432"]` under `postgres`)
and set `CHRONOS_DB_HOST: 127.0.0.1`.
- Behind a reverse proxy (`CHRONOS_TLS_MODE=proxy`), only the proxies listed in `CHRONOS_TRUSTED_PROXIES` may set
@@ -126,10 +131,18 @@ admin panel shows under Settings so you can compare them.
3. Docker › *Add container* › Template `chronos-server`. Set the admin password, the database host, password and the
archive share (default `/mnt/user/Timelapse`). The database host is the Unraid server's IP address (the PostgreSQL
template publishes port 5432): container names resolve only when both containers are on the same custom Docker
network, not on the default *bridge*. If you change the HTTPS port, enter the same port in *Public HTTPS port*.
network, not on the default *bridge*. If you change the HTTP or HTTPS port, enter the same port in *Public HTTP port*
or *Public HTTPS port* (or later in the admin panel's Settings › Network and TLS).
*Array view* is the same share under `/mnt/user0` (default `/mnt/user0/Timelapse`): the admin panel then shows the
array's free space rather than the cache's. Change it with the archive share, or remove it and clear *Space path*.
4. Open the WebUI (`http://[IP]:8080/admin`).
4. Open the WebUI (`http://[IP]:8080/admin`). Clients connect to the *Client address* in Settings › Network and TLS,
`https://[IP]:<HTTPS port>`. On network type *Bridge* LAN discovery stays inside Docker, so clients do not find the
server by themselves: type that address. Network type *Host* lets them find it.
Upgrading a container made from an earlier template, or one on `:nightly`: edit the container, set *Repository* 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 enter them in the admin panel. The ports the panel listed as HTTP and HTTPS port are the
container's (8080 and 8443), not the ones clients use.
The template file is [`unraid/chronos.xml`](unraid/chronos.xml).