docs: fix Docker quick starts and document routable-prefix intl reach

README:
- Quick start: drop the Docker command block. The repo ships no ready-to-run
  svxreflector.conf (only the .conf.in template) and the compose bind-mount
  hits the 'auto-create a directory' trap, so the inline 'docker compose up'
  steps fail for a newcomer. Point step 1 at the template and step 2 at
  INSTALL.md / DOCKER.md instead.
- Section 5 routable example: use real countries with ISO-alphabetical section
  names (TRUNK_DE_IT, TRUNK_DE_FR) per the naming standard, plus a clearly
  sub-national name for the regional uplink; real MCCs (IT 222, DE 262, FR 208).

docs/DOCKER.md:
- Rewrite step 1: you must create config/svxreflector.conf before first start;
  warn about the bind-mount directory trap and how to recover; copy from the
  .conf.in template; link the README quick start and INSTALL.md.

docs/DEPLOYMENT_ITALY.md + _IT.md:
- Add a 'Reaching international TGs' section (EN + IT): the national mesh needs
  an international gateway plus ROUTABLE_PREFIXES on each region's gateway trunk
  to reach foreign TGs; notes on '*' for a single-uplink leaf and BLACKLIST
  precedence.
This commit is contained in:
Audric committed 2026-06-17 18:04:40 +02:00
1 parent ab7ab031e9
commit 594eee2056
4 files changed
+162 -54

No files matched your search

+45
View File
@@ -273,6 +273,51 @@ All reflectors in the mesh must list the same `CLUSTER_TGS` value.
---
## Reaching international TGs (optional)
The mesh above is **purely national** — every region reaches every other Italian
region directly, so no extra routing is needed *inside* Italy. But a region's
prefix table only contains Italian `222…` prefixes, so a TG owned **abroad**
(another country's MCC space, e.g. Germany `262`) matches nothing and stays
local. To let Italian clients reach foreign TGs, two pieces are needed:
1. **Designate an international gateway.** Pick one reflector to join the
international mesh by trunking to foreign countries. Name those links with the
international standard `TRUNK_<ISO>_<ISO>`, ISO codes alphabetical — e.g.
`TRUNK_DE_IT` to Germany, `TRUNK_FR_IT` to France (see the README, section 4).
2. **Point each region at the gateway with `ROUTABLE_PREFIXES`.** On every
region's trunk section *facing the gateway*, declare the foreign prefixes as
reachable via it:
```ini
# On each region, in the trunk section facing the international gateway:
ROUTABLE_PREFIXES=262,208 # DE, FR, … reachable via the gateway
```
Now a regional client keying e.g. `26201` (a German TG) matches the routable
`262` on the gateway trunk, so the region forwards it to the gateway, which
relays it into the international mesh toward Germany. The return audio comes back
via peer interest.
Notes:
- Each prefix you want reachable must be named — there is **no** automatic
propagation. A region that is **not** in the national full mesh (a single
reflector whose only trunk is the gateway) can instead set
`ROUTABLE_PREFIXES=*`, a default route to everything via that one uplink. Do
**not** use `*` on a region that has multiple trunks (it logs a startup
warning).
- `BLACKLIST_TGS` is evaluated first: a blacklisted TG is never forwarded,
regardless of `ROUTABLE_PREFIXES`.
See the README
[Routable prefixes](../README.md#5-routable-prefixes--hierarchical-and-non-full-mesh-topologies-optional)
section and [`TOPOLOGY_EXAMPLES.md`](TOPOLOGY_EXAMPLES.md) §2 for the full
mechanism and diagrams.
---
## Concurrent conversations
There is **no hardcoded limit** on concurrent QSOs over the trunk. The trunk
+48
View File
@@ -280,6 +280,54 @@ Tutti i reflector nella mesh devono avere lo stesso valore di `CLUSTER_TGS`.
---
## Raggiungere i TG internazionali (opzionale)
La mesh sopra descritta è **puramente nazionale**: ogni regione raggiunge
direttamente ogni altra regione italiana, quindi non serve alcun instradamento
aggiuntivo *all'interno* dell'Italia. Ma la tabella dei prefissi di una regione
contiene solo prefissi italiani `222…`, perciò un TG di proprietà **estera**
(lo spazio MCC di un altro paese, es. Germania `262`) non corrisponde a nulla e
resta locale. Per consentire ai client italiani di raggiungere TG esteri servono
due elementi:
1. **Designare un gateway internazionale.** Si sceglie un reflector che entra
nella mesh internazionale collegandosi in trunk ai paesi esteri. Questi link
vanno nominati con lo standard internazionale `TRUNK_<ISO>_<ISO>`, codici ISO
in ordine alfabetico — es. `TRUNK_DE_IT` verso la Germania, `TRUNK_FR_IT`
verso la Francia (vedi il README, sezione 4).
2. **Puntare ogni regione al gateway con `ROUTABLE_PREFIXES`.** Nella sezione
trunk di ogni regione *rivolta al gateway*, si dichiarano i prefissi esteri
come raggiungibili tramite esso:
```ini
# Su ogni regione, nella sezione trunk rivolta al gateway internazionale:
ROUTABLE_PREFIXES=262,208 # DE, FR, … raggiungibili tramite il gateway
```
Ora un client regionale che trasmette ad es. su `26201` (un TG tedesco)
corrisponde al routable `262` sul trunk verso il gateway: la regione lo inoltra
al gateway, che lo rilancia nella mesh internazionale verso la Germania. L'audio
di ritorno torna indietro tramite il peer interest.
Note:
- Ogni prefisso che si vuole raggiungere va elencato esplicitamente — **non**
c'è propagazione automatica. Una regione che **non** fa parte della mesh
nazionale (un reflector il cui unico trunk è il gateway) può invece impostare
`ROUTABLE_PREFIXES=*`, una rotta di default verso tutto tramite quell'unico
uplink. **Non** usare `*` su una regione con più trunk (genera un avviso
all'avvio).
- `BLACKLIST_TGS` viene valutato per primo: un TG in blacklist non viene mai
inoltrato, indipendentemente da `ROUTABLE_PREFIXES`.
Vedi la sezione
[Routable prefixes](../README.md#5-routable-prefixes--hierarchical-and-non-full-mesh-topologies-optional)
del README e [`TOPOLOGY_EXAMPLES.md`](TOPOLOGY_EXAMPLES.md) §2 per il meccanismo
completo e i diagrammi.
---
## Conversazioni simultanee
Non esiste **nessun limite fisso** al numero di QSO simultanei sul trunk. Il trunk
+24 -8
View File
@@ -16,19 +16,35 @@ minimal `debian:bookworm-slim` image.
## Quick start
### 1. Prepare the config directory
### 1. Create the config file *first*
`docker-compose.yml` bind-mounts `./config/svxreflector.conf` into the container
as a file. **You must create that file before the first `docker compose up`.**
> **Gotcha:** if `./config/svxreflector.conf` does not exist when the container
> starts, Docker silently creates it as an **empty directory**, and the
> reflector then fails to start. If that happens, stop the stack, delete the
> stray directory (`rm -rf config/svxreflector.conf`), create the file as below,
> and start again.
The repository does not ship a ready-to-run config — it ships the template
`src/svxlink/reflector/svxreflector.conf.in`. Start from that:
```bash
mkdir config
cp /path/to/your/svxreflector.conf config/svxreflector.conf
mkdir -p config
cp src/svxlink/reflector/svxreflector.conf.in config/svxreflector.conf
# then edit config/svxreflector.conf
```
The config file is mounted read-only into the container. Edit it on the host;
restart the container to apply changes (or use the PTY interface for live
user/password reloads — see below).
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, add `LOCAL_PREFIX` and any `[TRUNK_x]` sections you need. See
[`docs/INSTALL.md`](INSTALL.md) for the config additions required for trunking.
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
below).
### 2. Build and start