fix: owner review 3 phase 1: server ports for clients, screenshot baselines (#16)
CI / Build and test (push) Successful in 9m36s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 9s
Release / Build, test and publish (push) Successful in 14m4s
CI / PostgreSQL 16 integration (push) Successful in 8m26s
CI / PostgreSQL 17 integration (push) Successful in 8m43s
CI / Docker image (push) Successful in 50s
Release / Server image (push) Successful in 1m23s

Clients could not reach a server in a container whose ports are published as other host ports: the panel showed the container's ports, the template had no public HTTP port, and a bare host meant port 443. Public ports become panel settings, the panel shows the client address, both clients default to 8443, and an address that answers as another service is named as not a Chronos server (its certificate never offered for trust). The screenshot baselines are captured on the development PC and committed; measured values are fixed while the capture runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #16.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-04 12:33:22 +01:00
1 parent 30a5b03f37
commit 255e149087
306 files changed
+2023 -206

No files matched your search

+13 -3
View File
@@ -11,10 +11,14 @@ services:
depends_on:
postgres:
condition: service_healthy
# Publishing a port as another host port ("18443:8443")? Set CHRONOS_PUBLIC_HTTPS_PORT (and _HTTP_PORT) below to the
# host port. LAN discovery reaches clients only with "network_mode: host"; on this bridge network clients add the
# server by its address. With host networking drop "ports", give the postgres service
# Clients connect to https://<host>:8443, the Client address the admin panel shows (Settings › Network and TLS).
# Publishing a port as another host port ("18443:8443")? Keep the container port (after the colon) and set
# CHRONOS_PUBLIC_HTTPS_PORT and CHRONOS_PUBLIC_HTTP_PORT below, or the public ports in the admin panel, to the host
# ports. LAN discovery reaches clients only with "network_mode: host"; on this bridge network clients type the
# client address. With host networking drop "ports", give the postgres service
# ports: ["127.0.0.1:5432:5432"] and set CHRONOS_DB_HOST to 127.0.0.1: the name "postgres" no longer resolves there.
# The server then listens on the host's 8080 and 8443 itself: if another service uses either, set CHRONOS_HTTP_PORT
# or CHRONOS_HTTPS_PORT below to a free port and leave the public ports unset.
ports:
- "8080:8080"
- "8443:8443"
@@ -35,7 +39,13 @@ services:
# host itself, run this service with network_mode: host; the proxy then reaches Chronos over loopback.
CHRONOS_TLS_MODE: auto
# CHRONOS_TRUSTED_PROXIES: "172.30.0.10"
# The host ports clients use, when "ports" publishes 8080 and 8443 as others. Set here, the admin panel can no
# longer change them.
# CHRONOS_PUBLIC_HTTP_PORT: "8080"
# CHRONOS_PUBLIC_HTTPS_PORT: "8443"
# The ports the server listens on, with network_mode: host only (on a bridge network the mapping above decides).
# CHRONOS_HTTP_PORT: "8080"
# CHRONOS_HTTPS_PORT: "8443"
CHRONOS_SERVER_NAME: Chronos Server
# Jobs run one at a time. Photos the running job processes at once (default: half the cores), and the priority queue
# (a higher job pauses the running one, which resumes afterwards). Set here, they can no longer be changed in the
+29 -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,14 +98,20 @@ 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`.
- With host networking the port mappings do nothing: the server listens on the host's 8080 and 8443 itself, and the
container does not start when another service already uses either. Then add the variable `CHRONOS_HTTP_PORT` or
`CHRONOS_HTTPS_PORT` with a free port (compose: under `environment`; Unraid: *Add another Path, Port, Variable…* ›
*Variable*, Key `CHRONOS_HTTPS_PORT`), and leave the public ports empty: clients reach the listening ports directly.
- Behind a reverse proxy (`CHRONOS_TLS_MODE=proxy`), only the proxies listed in `CHRONOS_TRUSTED_PROXIES` may set
`X-Forwarded-*` headers. By default that is loopback only: other machines on your network reach the HTTP port
directly, so they must not choose the address the sign-in limit and the audit log see. List your proxy's own
@@ -126,10 +135,20 @@ 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; the server then listens on the
host's own 8080 and 8443, so when another service uses either, add the variable `CHRONOS_HTTP_PORT` or
`CHRONOS_HTTPS_PORT` first (see host networking above).
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).
+5 -4
View File
@@ -9,7 +9,7 @@
<Privileged>false</Privileged>
<Support>https://gitea.encke-hake.ts.net/BalboSoft/Chronos/issues</Support>
<Project>https://gitea.encke-hake.ts.net/BalboSoft/Chronos</Project>
<Overview>Chronos Server keeps a shared, verified archive of time-lapse photo sequences and renders them. Pair it with the official PostgreSQL 17 container.</Overview>
<Overview>Chronos Server keeps a shared, verified archive of time-lapse photo sequences and renders them; pair it with the official PostgreSQL 17 container. Clients connect to the Client address the admin panel shows (Settings, Network and TLS); LAN discovery needs network type Host.</Overview>
<Category>MediaServer:Photos Tools:</Category>
<WebUI>http://[IP]:[PORT:8080]/admin</WebUI>
<TemplateURL>https://gitea.encke-hake.ts.net/BalboSoft/Chronos/raw/branch/main/deploy/unraid/chronos.xml</TemplateURL>
@@ -21,9 +21,10 @@
<DonateText/>
<DonateLink/>
<Requires>A PostgreSQL 16 or 17 container (official "postgres" template) with a database and user for Chronos.</Requires>
<Config Name="HTTP port" Target="8080" Default="8080" Mode="tcp" Description="Admin panel and API over HTTP." Type="Port" Display="always" Required="true" Mask="false">8080</Config>
<Config Name="HTTPS port" Target="8443" Default="8443" Mode="tcp" Description="API over TLS for Chronos clients. When you change it, enter the same port in Public HTTPS port." Type="Port" Display="always" Required="true" Mask="false">8443</Config>
<Config Name="Public HTTPS port" Target="CHRONOS_PUBLIC_HTTPS_PORT" Default="" Mode="" Description="The HTTPS port above, when it is not 8443; the admin panel redirects there." Type="Variable" Display="always" Required="false" Mask="false"/>
<Config Name="HTTP port" Target="8080" Default="8080" Mode="tcp" Description="Admin panel and API over HTTP; when you change it, enter the same port in Public HTTP port. Network type Host ignores this mapping: the server then listens on 8080 itself." Type="Port" Display="always" Required="true" Mask="false">8080</Config>
<Config Name="HTTPS port" Target="8443" Default="8443" Mode="tcp" Description="API over TLS for Chronos clients, which connect to https://[server IP]:[this port]; when you change it, enter the same port in Public HTTPS port. Network type Host ignores this mapping: the server then listens on 8443 itself." Type="Port" Display="always" Required="true" Mask="false">8443</Config>
<Config Name="Public HTTP port" Target="CHRONOS_PUBLIC_HTTP_PORT" Default="" Mode="" Description="The HTTP port above, when it is not 8080; LAN discovery announces it. Set here, the admin panel can no longer change it (empty: 8080, changeable in the admin panel)." Type="Variable" Display="always" Required="false" Mask="false"/>
<Config Name="Public HTTPS port" Target="CHRONOS_PUBLIC_HTTPS_PORT" Default="" Mode="" Description="The HTTPS port above, when it is not 8443: the port of the client address, the admin panel's redirect and LAN discovery. Set here, the admin panel can no longer change it (empty: 8443, changeable in the admin panel)." Type="Variable" Display="always" Required="false" Mask="false"/>
<Config Name="Archive" Target="/archive" Default="/mnt/user/Timelapse" Mode="rw" Description="Originals, sidecars, proxies and renders." Type="Path" Display="always" Required="true" Mask="false">/mnt/user/Timelapse</Config>
<Config Name="Array view" Target="/space" Default="/mnt/user0/Timelapse" Mode="ro" Description="Optional: the same share seen on the array only (/mnt/user0/&lt;share&gt;), to show the array's free space." Type="Path" Display="always" Required="false" Mask="false">/mnt/user0/Timelapse</Config>
<Config Name="App data" Target="/data" Default="/mnt/user/appdata/chronos" Mode="rw" Description="Settings, TLS certificate, uploads in progress and logs." Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/chronos</Config>