ncro/config.example.toml
NotAShelf 265a30d3c8
meta: prepare for publishing
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I02ee54baee048c58a480522ce79159eb6a6a6964
2026-05-11 13:28:35 +03:00

39 lines
797 B
TOML

[server]
listen = ":8080"
read_timeout = "30s"
write_timeout = "30s"
[[upstreams]]
priority = 10
public_key = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
url = "https://cache.nixos.org"
# Try without a public key.
[[upstreams]]
priority = 20
url = "https://nix-community.cachix.org"
[cache]
db_path = "/var/lib/ncro/routes.db"
latency_alpha = 0.3
max_entries = 100000
negative_ttl = "10m"
ttl = "1h"
[discovery]
discovery_time = "5s"
domain = "local"
enabled = false
priority = 20
service_name = "_nix-serve._tcp"
[mesh]
bind_addr = "0.0.0.0:7946"
enabled = false
gossip_interval = "30s"
peers = [ ]
private_key = "/etc/ncro/node.key"
[logging]
format = "json"
level = "info"