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