Files
Chronos/deploy/releases-repo/README.md
T
Alby96andClaude Opus 5.5 0aa2fb8135 fix(server): client address from the page's port, stricter Chronos identity, Host networking notes
Review fixes on top of the public ports change (owner review 3):

- Settings > Network and TLS: opened over HTTPS, the client address uses the port
  the page came through (a container's 8443 published as 8444 with Public HTTPS
  port still empty showed the wrong 8443), and a "Use <port>" button fills that
  port in. Saving a Public HTTPS port other than the page's asks first, since the
  HTTPS redirect follows it at once and a typo would lock the panel's link out.
- GetInfoAsync tells Chronos from other services by stricter rules on both the
  trusted and the untrusted-certificate path: any redirect, any answer that is not
  JSON, more than 1 MB, or an error without the X-Chronos-Api header is not
  Chronos. Another service's certificate is no longer offered for trust after a
  cross-scheme redirect, an error page or a JSON 401/403/404, and a JSON 401 over
  HTTP no longer reads as a wrong password.
- The HTTP port typed without a scheme (TLS to a plain HTTP port) now gives the
  not-Chronos error instead of "the server did not answer".
- The Uploader's certificate question names the address with its port.
- A link-local IPv6 address with a zone index is refused instead of losing it.
- In a container, the first save of the settings removes HttpPort/HttpsPort from
  server.json, so the start-up warning stops; the warning says so.
- Guide, README, compose and template: with network type Host the mappings do
  nothing and CHRONOS_HTTP_PORT / CHRONOS_HTTPS_PORT move the listening ports off
  ones another service uses; the template overview is back to two sentences.
- BRIEF, DECISIONS and CHANGELOG updated; en/it strings added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 10:28:08 +01:00

204 lines
16 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Chronos
Chronos turns folders of photos (RAW, JPEG, HEIC…) into finished time-lapse videos and keeps a lifetime archive of
your shoots organised, verified and searchable — on one PC or on a shared server.
This repository publishes the installers, the Docker image instructions, the Unraid template and the translations
for community review. Development happens elsewhere; please use the issues here for bugs and translation fixes.
![Library](screenshots/library-dark.png)
## Components
| Program | Runs on | What it does |
|---|---|---|
| **Chronos** | Windows 10 21H2+ / 11, x64 | Desktop client: card import with hash verification, archive, analysis advisor, sequence editor, rendering with GPU encoders (H.264, HEVC, AV1) |
| **Chronos Uploader** | Windows 10 21H2+ / 11, x64 | Small tray program that uploads photos, folders, cards and watch folders to a Chronos Server |
| **Chronos Server** | Docker (linux/amd64), Unraid, Windows | Shared archive, users, resumable uploads, sync, background jobs, render delegation to GPU-equipped PCs, web admin panel |
| | |
|---|---|
| ![Jobs](screenshots/jobs-dark.png) | ![Rendering settings](screenshots/settings-rendering-dark.png) |
| ![Server](screenshots/server-dark.png) | ![Uploader](screenshots/uploader-queue-dark.png) |
## Requirements
- **Desktop programs:** Windows 10 version 21H2 or later, or Windows 11, 64-bit (x64). 8 GB of memory or more is
recommended for 4K renders. No other runtime is needed: the programs are self-contained.
- **Camera RAW files:** Chronos develops DNG, CR2, NEF, ARW, PEF and RAF on its own. With Microsoft's free
*Raw Image Extension* installed, Windows' decoder is used first and covers the other formats (CR3, ORF, RW2…);
without it they render from the full-size preview embedded by the camera. HEIC needs Microsoft's *HEIF Image
Extensions* and *HEVC Video Extensions*.
- **Hardware encoding:** any GPU whose driver provides Media Foundation encoders (NVIDIA, AMD, Intel). Without one,
Chronos encodes H.264 in software and its own formats (AVI, GIF, APNG, image sequences).
- **Server:** Docker 20.10+ (or Unraid 6.12+) and PostgreSQL 16 or 17; or Windows 10/11/Server 2019+ x64.
## Install, upgrade, uninstall (Windows)
1. Download `Chronos-Setup-<version>.exe` (Chronos, Uploader and, optionally, Server) or
`Chronos-Uploader-Setup-<version>.exe` from the [latest release](https://gitea.encke-hake.ts.net/BalboSoft/Chronos/releases/latest).
2. Check the download (optional, recommended): in PowerShell run
`Get-FileHash .\Chronos-Setup-<version>.exe -Algorithm SHA256` and compare the value with the line for that file
in `SHA256SUMS` of the same release.
3. Run the setup. It installs for the current user into `%LOCALAPPDATA%\Programs\Chronos` without administrator
rights; choose *All users* to install into `Program Files` (Windows asks for permission). The *Server* component
runs as a Windows service, so choosing it installs for all users, in a folder inside `Program Files`.
- **Upgrade:** Chronos checks this repository at start (you can turn this off in Settings › Updates) and shows a notice
when a new version exists. *Download* fetches the setup, verifies it against `SHA256SUMS` and shows it in Explorer;
run it to upgrade in place. Your archive, settings and index are kept.
- **Uninstall:** Windows Settings › Apps › Installed apps › Chronos › Uninstall. Your photos and archive are never
touched; the program data in `%LOCALAPPDATA%\Chronos` is removed only if you tick the option to do so, and only the
part no other installed Chronos program still uses. A Chronos Server service of that folder is stopped and removed.
- **Silent install** (IT deployment): `Chronos-Setup-<version>.exe /S [/DIR="D:\Apps\Chronos"] [/ALLUSERS]
[/COMPONENTS=Chronos,Uploader,Server] [/NODESKTOP] [/NOSTARTMENU] [/LANG=it]`. Silent uninstall:
`"%LOCALAPPDATA%\Programs\Chronos\Uninstall Chronos.exe" /uninstall /S`.
- **Portable:** `Chronos-win-x64-portable-<version>.zip` keeps its data in a `data` folder next to `Chronos.exe`
(because of the `portable.txt` file). Do not unpack it into a OneDrive or Dropbox folder.
## Chronos Server with Docker Compose
```sh
mkdir chronos && cd chronos
curl -LO https://gitea.encke-hake.ts.net/BalboSoft/Chronos/raw/branch/main/deploy/docker/docker-compose.yml
curl -L -o .env https://gitea.encke-hake.ts.net/BalboSoft/Chronos/raw/branch/main/deploy/docker/.env.example
# edit .env: CHRONOS_ADMIN_PASSWORD, CHRONOS_DB_PASSWORD, CHRONOS_ARCHIVE (folder of your archive), PUID/PGID, TZ
docker compose up -d
```
Create the archive folder owned by `PUID:PGID` first (for example `mkdir -p <folder> && chown 1000:1000 <folder>`). An
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 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
production use. Architecture: `linux/amd64`. If the registry asks you to sign in, run
`docker login gitea.encke-hake.ts.net` with your Gitea account first.
- Volumes: `/archive` (originals, sidecars, proxies, renders — the archive stays readable without Chronos) and `/data`
(settings, TLS certificate, uploads in progress, logs).
- Free space: the admin panel shows the archive volume's, or with `CHRONOS_SPACE_PATH` that of another folder. An
Unraid share (`/mnt/user/<share>`) reports its primary storage, often the cache, while the mover sends the photos to
the array: map the share's array view read-only (`/mnt/user0/<share>:/space:ro`) and set `CHRONOS_SPACE_PATH: /space`.
Uploads always check the archive volume itself (`507` when it is full).
- Upgrade: `docker compose pull && docker compose up -d`. Jobs in progress resume from their last checkpoint.
- All settings: environment variables `CHRONOS_*` (see `docker-compose.yml`) or `/data/server.json`. Run
`docker run --rm gitea.encke-hake.ts.net/balbosoft/chronos-server:latest --help` for the list.
- Logs: `/data/logs/server-yyyyMMdd.log`, or one file per hour with `CHRONOS_LOG_ROTATION=hourly` (UTC). A file
continues in `.1.log`, `.2.log`… at 50 MB (`CHRONOS_LOG_MAX_FILE_MB`), files are kept 14 days
(`CHRONOS_LOG_RETENTION_DAYS`) and the oldest go when all of them pass 1024 MB (`CHRONOS_LOG_MAX_TOTAL_MB`; 0: no
limit). `CHRONOS_LOG_LEVEL` sets the level of the files and the console, `CHRONOS_LOG_CONSOLE_LEVEL` the console's
alone. Without these variables the admin panel changes them in Settings › Logs while the server runs; a field a
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`), 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, 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
address. Give a proxy container a fixed IP on a user-defined Docker network it shares with Chronos (`ipv4_address` in
compose, *Fixed IP address* on Unraid), for example `172.30.0.10`, and let it reach Chronos on that network rather
than through a published port. Never list a subnet, the network's gateway (`.1`) or Docker's default bridge
(`172.17.0.0/16`): Docker relays connections to published ports from the gateway (IPv6 clients, the host itself),
and on the default bridge every other container would count as your proxy too. For a proxy running on the Docker
host itself, run Chronos with `network_mode: host`: the proxy then reaches it over loopback. The admin panel shows
*Not via proxy* when a page did not come through a trusted proxy over HTTPS.
## Chronos Server on Unraid
1. Install the official **postgresql17** template from Community Applications. Create a database `chronos` owned by a
role `chronos` (for example with `docker exec -it postgresql17 psql -U postgres -c "CREATE ROLE chronos LOGIN
PASSWORD '…'" -c "CREATE DATABASE chronos OWNER chronos"`).
2. Save the template [`unraid/chronos.xml`](unraid/chronos.xml) on the Unraid server as
`/boot/config/plugins/dockerMan/templates-user/my-chronos-server.xml` (for example with
`wget -O /boot/config/plugins/dockerMan/templates-user/my-chronos-server.xml <TemplateURL>`, the address in the
template's `<TemplateURL>`). Unraid's *Template repositories* read GitHub and GitLab addresses, not Gitea's.
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 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`). 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).
## Chronos Server on Windows
Choose the *Server* component in the setup, or unpack `Chronos-Server-win-x64-<version>.zip`. It uses SQLite in
`C:\ProgramData\Chronos Server` by default, or PostgreSQL with `CHRONOS_DB=postgres` and the `CHRONOS_DB_*` variables.
The data folder is readable only by the server's account, SYSTEM and Administrators; without `CHRONOS_ADMIN_PASSWORD`
the first start writes a temporary admin password to `initial-admin-password.txt` there (open it from an
administrator prompt). Everything in it must belong to those accounts and nothing in it may be a link: otherwise the
server does not start and names the file to check (in the console, or for the service in Event Viewer › Windows Logs ›
Application, source `ChronosServer`). A new archive folder (default `C:\ChronosArchive`) can be changed only by those
accounts and read by other users; when other users can change an existing archive, the log says so.
Run `Chronos.Server.exe` in a console, or install it as a Windows service from an administrator prompt with
`Chronos.Server.exe --install-service` (remove it with `--uninstall-service`). The service runs as LocalSystem, so it
registers only from a copy inside `Program Files` that only administrators can change: install for *All users*, or
unpack the zip into a folder under `Program Files`. A console run that was not elevated creates the data folder as the
account that ran it, and the service then refuses the folder and names that account (`… belongs to PC\name …`).
Either delete the folder (with SQLite this also deletes the server's database and its accounts), or give the folder
and everything in it to Administrators and take that account's access to it away, from a Command Prompt run as
administrator: `takeown /F "C:\ProgramData\Chronos Server" /A /R`, then
`icacls "C:\ProgramData\Chronos Server" /remove:g "PC\name" /T`, with the account the refusal names in place of
`PC\name` (`dir /q C:\ProgramData` also shows it, as the folder's owner, until `takeown` runs). When you ran the
console yourself and the prompt runs as you, that account is `"%USERDOMAIN%\%USERNAME%"`. Then start the service. No
other account gains access at any step, and afterwards only SYSTEM and Administrators have it, to the TLS key and
`initial-admin-password.txt` too. Do not reset the folder's permissions (`icacls /reset`): everything in it would then
inherit those of `C:\ProgramData`, which let every user read it.
## Translations
Chronos is written in English and Italian; every other language is machine-translated and marked as such in
Settings › About. The source strings are in [`i18n/`](i18n): `en/<Area>.resx` is the source, `<language>/<Area>.<language>.resx`
the translation. To suggest a correction, open a **Translation review** issue with the key, the current text and
your proposal — or the in-app *Suggest a fix* link in Settings › About, which leads here.
## Verifying downloads
Every release carries `SHA256SUMS`. On Linux or macOS: `sha256sum -c SHA256SUMS --ignore-missing`. Chronos's
in-app update download performs the same check before showing the setup or portable zip. Signed builds carry an Authenticode
signature; unsigned builds may show a SmartScreen prompt.
## Support and security
- Bugs: open a **Bug report** issue (attach the diagnostics bundle from Settings › Advanced › Diagnostics ›
*Export bundle*, or the server's from admin panel › Logs › *Diagnostics*; it contains logs and system information,
never photos, passwords or tokens).
- Security problems: see [SECURITY.md](SECURITY.md) — please do not open public issues for them.
## Licence
Chronos is proprietary software distributed free of charge under the [End User Licence Agreement](EULA.md).