Build:
docker build -t nntp-proxy .Run with environment-provided backends:
docker run -d \
--name nntp-proxy \
-p 8119:8119 \
-e NNTP_SERVER_0_HOST=news.example.com \
-e NNTP_SERVER_0_PORT=119 \
-e NNTP_SERVER_0_NAME=Primary \
-e NNTP_SERVER_0_STAT_MISSING=1 \
-e NNTP_SERVER_0_USERNAME="$BACKEND_USER" \
-e NNTP_SERVER_0_PASSWORD="$BACKEND_PASS" \
nntp-proxySet NNTP_SERVER_*_STAT_MISSING=1 on backends that correctly return 430 for missing articles if you want the proxy to prefetch those misses with STAT.
The repository also includes ../../docker-compose.yml.
Common persisted files:
stats.jsonfor metrics persistence when[proxy].stats_fileis not setavailability.idxfor availability-only cache persistence when[cache]is configured,store_article_bodies = false, and[cache].availability_index_pathis not setavailability.registrybeside a hybrid cache's payload directory, when a disk-backed cache is configured; it maps canonical provider hostnames to the slots used for availability tracking. It contains no credentials or message IDs.
The proxy records missing articles by exact message ID and canonical provider hostname. The same hostname shares a provider slot across ports, addresses, accounts, TLS settings, tiers, and display names. The bounded index can forget old facts through expiry, rotation, or replacement. The proxy retries a provider once it has forgotten the earlier miss.
If you want explicit paths, configure them directly in config.toml.
- Client-facing connections are plain NNTP only.
- TLS applies to backend connections, not the client listener.
- Keep dashboard websocket addresses on loopback.
- Use a credentials overlay file when you do not want secrets in the main config.
- Hybrid is the default routing mode.
statefulandper-commandremain available as explicit modes.
lsof -i :8119
nntp-proxy --port 8120- Check
usernameandpasswordon the matching[[servers]]entry. - Test direct connectivity to the backend.
- Check logs for backend response codes.
- Check
[routing].modefirst when behavior does not match your workload. hybridstarts per-command and switches to a dedicated backend for stateful commands.
- Keep
tls_verify_cert = truein production. - Check the system CA store.
- Add
tls_cert_pathfor private CA deployments.
[cache]controls retained article data.[memory]controls socket buffers and buffer pools.[cache.disk]adds a disk tier for article bodies, not transport memory.
See tcp-tuning.md for the current socket options the proxy sets and for optional host-level tuning guidance.