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
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:
1 parent
30a5b03f37
commit
255e149087
306 files changed
+2023
-206
No files matched your search
@@ -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).
|
||||
|
||||
|
||||
Reference in new issue
Block a user