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:
1 parent
9b24cf74fc
commit
369e754bec
33 files changed
+862
-82
No files matched your search
@@ -11,9 +11,11 @@ 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.
|
||||
ports:
|
||||
- "8080:8080"
|
||||
@@ -35,6 +37,9 @@ 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"
|
||||
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
|
||||
|
||||
@@ -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).
|
||||
|
||||
|
||||
@@ -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 reaches them only with 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." 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." 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/<share>), 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>
|
||||
|
||||
Reference in new issue
Block a user