docs: note [SERVER_CERT] COMMON_NAME is required to start

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.
This commit is contained in:
Audric committed 2026-06-17 18:26:55 +02:00
1 parent 594eee2056
commit 7e625dd514
2 files changed
+18 -8

No files matched your search

+10 -3
View File
@@ -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.