Repository navigation
Expand file tree
/
Copy pathconfig.example.toml
More file actions
60 lines (55 loc) · 1.68 KB
/
Copy pathconfig.example.toml
File metadata and controls
60 lines (55 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# NNTP Proxy — Typical Configuration
#
# A good starting point for most setups:
# - Single worker thread
# - Two backend servers (primary + fallback)
# - No article cache
# - No client authentication
#
# Copy to config.toml and fill in your backend details.
# For all available options see config.full.toml.
[proxy]
# Port to listen on (default: 8119)
port = 8119
# Worker threads (default: 1; use 0 for one per CPU core)
threads = 1
[routing]
# Routing mode: "hybrid" (default), "per-command", or "stateful"
mode = "hybrid"
# Backend selection strategy: "least-loaded" (default) or "weighted-round-robin"
backend_selection = "least-loaded"
[health_check]
interval = 30
timeout = 5
unhealthy_threshold = 3
# Primary backend — tried first
[[servers]]
host = "news.example.com"
port = 119
name = "Primary"
username = "your_username"
password = "your_password"
# Servers with the same hostname share recorded article misses across ports,
# credentials, TLS settings, tiers, and display names. Hostname matching ignores
# ASCII case and one trailing DNS dot.
max_connections = 20
tier = 0
# Probe misses with STAT before ARTICLE/BODY/HEAD on this backend (0=off, non-zero=on)
stat_missing = 1
use_tls = false
tls_verify_cert = true
# Fallback backend — used after the primary tier is exhausted for the request
# (for example, after eligible primary backends report article-missing 430s)
[[servers]]
host = "news2.example.com"
port = 563
name = "Fallback"
username = "your_username"
password = "your_password"
max_connections = 10
tier = 1
# Enable STAT miss probes on non-primary tiers to prefill availability while tier 0 fetch runs.
stat_missing = 1
connection_keepalive = 60
use_tls = true
tls_verify_cert = true