Replace the X25519/HKDF/ChaCha20 TCP layer with rustls TLS 1.3 (ALPN vnox-lnex/3). Auto-generate a self-signed certificate keyed by the server identity or load an operator certificate, publish the SPKI fingerprint, bind HELLO and AUTH signatures to the TLS exporter, reject plaintext, TLS 1.2 and LNEx v2 peers with an explicit error. BREAKING: protocol v3. Claude-Session: https://claude.ai/code/session_01GDjxLvBcnJqniFQGUGb1V4
31 lines
1 KiB
TOML
31 lines
1 KiB
TOML
[node]
|
|
name = "dev-node"
|
|
address = "127.0.0.1"
|
|
|
|
[gateway]
|
|
bind = "127.0.0.1:7600"
|
|
max_connections = 100
|
|
session_timeout = 600
|
|
# Admin HTTP server (/health, /metrics, /version). Default 0.0.0.0:7601.
|
|
admin_bind = "127.0.0.1:7601"
|
|
# Per-session chat/DM rate limit (messages per second; 0 to disable).
|
|
message_rate_per_sec = 5
|
|
# Burst size for the token bucket.
|
|
message_rate_burst = 10
|
|
# TLS 1.3 is always on (LNEx v3). With neither option below the gateway generates
|
|
# a self-signed certificate in <data_dir>/tls/ (key = server identity) and prints its
|
|
# SPKI SHA-256 fingerprint at startup. Clients pin it on first use.
|
|
# For a public CA certificate (for example Let's Encrypt) set both paths and restart on renewal:
|
|
# tls_cert_path = "/etc/letsencrypt/live/chat.example.org/fullchain.pem"
|
|
# tls_key_path = "/etc/letsencrypt/live/chat.example.org/privkey.pem"
|
|
|
|
[voice]
|
|
bind = "127.0.0.1:7700"
|
|
|
|
[storage]
|
|
data_dir = "./dev/data"
|
|
backend = "sqlite"
|
|
sqlite_path = "./dev/data/vnox.db"
|
|
|
|
[server]
|
|
mode = "private"
|