From 7e625dd514101888deda660b5ba59d33c3fd2ec2 Mon Sep 17 00:00:00 2001 From: Audric Date: Wed, 17 Jun 2026 18:26:55 +0200 Subject: [PATCH] docs: note [SERVER_CERT] COMMON_NAME is required to start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verified by building the Docker image and running it: a reflector with no SERVER_CERT/COMMON_NAME aborts at startup ('SERVER_CERT/COMMON_NAME is unset ... Initialization failed') and, under restart: unless-stopped, crash-loops. Setting COMMON_NAME lets it auto-generate its CA + server cert and start cleanly (/status responds). The earlier minimal configs omitted it. - README quick start: add [SERVER_CERT] COMMON_NAME to the minimal config with a 'required — aborts without it' note. - docs/DOCKER.md: flag COMMON_NAME as required in step 1 and note the crash-loop failure mode. --- README.md | 13 ++++++++++--- docs/DOCKER.md | 13 ++++++++----- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5a028df..8f04c97 100644 --- a/README.md +++ b/README.md @@ -63,15 +63,17 @@ a single server. 1. **Write a config.** Start from the template `src/svxlink/reflector/svxreflector.conf.in` — it has the `[GLOBAL]`, - certificate, `[USERS]`, and `[PASSWORDS]` sections. For a standalone server - the only GeuReflector-specific addition is `LOCAL_PREFIX`; leave trunking out - entirely: + certificate, `[USERS]`, and `[PASSWORDS]` sections. A minimal standalone + config (no trunking) looks like this: ```ini [GLOBAL] LISTEN_PORT=5300 LOCAL_PREFIX=262 # optional for a single server; sets which TGs it "owns" + [SERVER_CERT] + COMMON_NAME=reflector.example.org # REQUIRED — host name for the auto-generated TLS cert + [USERS] MYNODE-1=MyNodes # the callsign your SvxLink node logs in with @@ -79,6 +81,11 @@ a single server. MyNodes="change-this-secret" ``` + `LOCAL_PREFIX` is the only GeuReflector-specific line; the rest is stock + SvxReflector. **`[SERVER_CERT] COMMON_NAME` is required** — without it the + reflector aborts at startup (*"SERVER_CERT/COMMON_NAME is unset"*). The + reflector auto-generates its own CA and server certificate on first run. + 2. **Build and run it.** See [`docs/INSTALL.md`](docs/INSTALL.md) to build from source and run it as a service, or [`docs/DOCKER.md`](docs/DOCKER.md) to run it in a container. diff --git a/docs/DOCKER.md b/docs/DOCKER.md index 35b8239..386c598 100644 --- a/docs/DOCKER.md +++ b/docs/DOCKER.md @@ -36,11 +36,14 @@ cp src/svxlink/reflector/svxreflector.conf.in config/svxreflector.conf # then edit config/svxreflector.conf ``` -At minimum set `LISTEN_PORT`, add a `[USERS]`/`[PASSWORDS]` entry for your node, -and (for trunking) `LOCAL_PREFIX` plus the `[TRUNK_x]` sections. See the -[README quick start](../README.md#quick-start--one-standalone-reflector) for a -minimal standalone config and [`docs/INSTALL.md`](INSTALL.md) for the trunking -additions. +At minimum set `LISTEN_PORT`, set `[SERVER_CERT] COMMON_NAME` (**required** — the +reflector aborts at startup without it, and with `restart: unless-stopped` the +container then crash-loops), add a `[USERS]`/`[PASSWORDS]` entry for your node, +and (for trunking) `LOCAL_PREFIX` plus the `[TRUNK_x]` sections. The reflector +auto-generates its CA and server certificate into the `pki` volume on first run. +See the [README quick start](../README.md#quick-start--one-standalone-reflector) +for a minimal standalone config and [`docs/INSTALL.md`](INSTALL.md) for the +trunking additions. The file is mounted read-only; edit it on the host and restart the container to apply changes (or use the PTY interface for live user/password reloads — see