fix(config): persist SUB_MAP by default in the example config

With SUB_MAP_FILE empty the server loads sub_map.pkl at startup but never
writes it, so private-call routes were lost on every restart for installs
based on the example. Set it to sub_map.pkl and correct the docs, which
claimed an empty value fell back to a default name.
pull/150/head
Rodrigo Pérez 1 month ago
parent 46ff7b215f
commit d6af705c24

@ -72,7 +72,7 @@ ALIASES:
# failed/missing download is retried on this short cadence instead of waiting a full
# STALE_DAYS cycle. Optional, defaults to 900 (15 minutes).
POLL_INTERVAL_SEC: 900
SUB_MAP_FILE: ""
SUB_MAP_FILE: sub_map.pkl
SERVER_ID_URL: https://servers.adn.systems/server_ids.tsv
SERVER_ID_FILE: server_ids.tsv
CHECKSUM_URL: https://servers.adn.systems/file_checksums.json

@ -279,7 +279,7 @@ Downloads and local files for **peer IDs**, **subscriber IDs**, **talkgroup labe
| **TRY_DOWNLOAD** | Whether to fetch from URLs when stale. |
| **PEER_FILE** / **SUBSCRIBER_FILE** / **TGID_FILE** | Local filenames. |
| **\*_URL** | Remote sources for downloads. |
| **SUB_MAP_FILE** | Pickle path for **SUB_MAP** (private call routing); default name if empty. See [Private calls](private-calls.md#sub_map-persistence). |
| **SUB_MAP_FILE** | Pickle path for **SUB_MAP** (private call routing), e.g. `sub_map.pkl`. Empty: SUB_MAP is not written to disk. See [Private calls](private-calls.md#sub_map-persistence). |
| **POLL_INTERVAL_SEC** | How often the lists are checked for download (default **900**). |
| **CHECKSUM_URL** / **CHECKSUM_FILE** | Published checksums, fetched on every poll; a list is downloaded only when its checksum no longer matches the file on disk (an unmatched checksum is retried once an hour). |
| **SERVER_ID_URL** / **SERVER_ID_FILE** | Server ID list (used by `VALIDATE_SERVER_IDS`). |

@ -279,7 +279,7 @@ Descargas y ficheros locales para **IDs de peer**, **IDs de suscriptor**, **etiq
| **TRY_DOWNLOAD** | Si se deben obtener desde URLs cuando están obsoletos. |
| **PEER_FILE** / **SUBSCRIBER_FILE** / **TGID_FILE** | Nombres de ficheros locales. |
| **\*_URL** | Orígenes remotos para descargas. |
| **SUB_MAP_FILE** | Ruta pickle para **SUB_MAP** (enrutado de llamadas privadas); nombre por defecto si está vacío. Ver [Llamadas privadas](private-calls.md#sub_map-persistence). |
| **SUB_MAP_FILE** | Ruta pickle para **SUB_MAP** (enrutado de llamadas privadas), p. ej. `sub_map.pkl`. Vacío: SUB_MAP no se escribe a disco. Ver [Llamadas privadas](private-calls.md#sub_map-persistence). |
| **POLL_INTERVAL_SEC** | Cada cuánto se revisa si hay que descargar las listas (por defecto **900**). |
| **CHECKSUM_URL** / **CHECKSUM_FILE** | Checksums publicados, que se descargan en cada revisión; una lista solo se descarga cuando su checksum ya no coincide con el fichero en disco (un checksum que no coincide se reintenta una vez por hora). |
| **SERVER_ID_URL** / **SERVER_ID_FILE** | Lista de IDs de servidor (la usa `VALIDATE_SERVER_IDS`). |

Loading…
Cancel
Save

Powered by TurnKey Linux.