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 Caching Proxy Configuration
# Backend NNTP servers
[[]]
= "news.example.com"
= 119
= "Example News Server"
# username = "your_username"
# password = "your_password"
= 10
# Connection health check interval (omit to disable, recommended: 60-120 seconds)
# Sends DATE command to detect stale connections before reuse
= 60
# TLS/SSL configuration
= false
= true
# tls_cert_path = "/path/to/ca-cert.pem"
# Cache configuration
[]
# Maximum memory cache size (default: 64mb)
# Supports human-readable formats: "1gb", "500mb", "64mb"
# For availability-only mode: ~1000 bytes per article
# For full caching: depends on article sizes (avg ~700 KB)
= "64mb"
# Time-to-live for cached articles (default: 1 hour)
= 3600
# Cache article bodies (default: true)
# Set to false for availability-only mode (tracks which backends have articles)
= true
# Enable adaptive prechecking for STAT/HEAD commands (default: false)
# Queries all backends simultaneously to build availability data
= false
# Disk Cache Configuration (optional)
# When configured, creates two-tier cache: memory -> disk -> backend
# Articles evicted from memory are written to disk for later retrieval
#
# [cache.disk]
# # Path to disk cache directory (will be created if needed)
# # Recommended: Use a fast SSD or NVMe drive
# path = "/var/cache/nntp-proxy"
# # Maximum disk cache size (default: 10gb)
# # Supports: "100gb", "10gb", "1tb", or raw bytes
# capacity = "10gb"
# # Enable LZ4 compression (default: true)
# # Reduces disk usage by ~60% for typical NNTP articles
# compression = true
# # Number of shards for concurrent disk access (default: 4)
# # Higher values improve concurrency but use more file handles
# shards = 4
# Health check configuration
[]
# Interval between health checks in seconds
= 30
# Timeout for each health check in seconds
= 5
# Number of consecutive failures before marking unhealthy
= 3