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:
1 parent
594eee2056
commit
7e625dd514
2 files changed
+18
-8
No files matched your search
@@ -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.
|
||||
|
||||
+8
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user