A: A1 peers config section, env overrides and print-config redaction

This commit is contained in:
ari committed 2026-10-19 22:31:29 -04:00
1 parent 12c3a40708
commit 40d18c2253
3 files changed
+211

No files matched your search

+26
View File
@@ -54,3 +54,29 @@ journal_namespace = "" # journal namespace, empty = default jo
max_lines = 1000 # max journal lines per request; SKYG_LIMITS__MAX_LINES
max_tail = 1000 # max container log lines per request; SKYG_LIMITS__MAX_TAIL
max_follow_secs = 60 # max duration of a bounded follow (MCP tail_journal); SKYG_LIMITS__MAX_FOLLOW_SECS
# Other slinuxm instances this process can health-check and proxy.
# Off by default: no peer routes, tools, background tasks or metrics.
# Scalar keys accept SKYG_PEERS__* (SKYG_PEERS__ENABLED, SKYG_PEERS__TCP_INTERVAL_SECS, ...).
# [[peers.peer]] entries are file-only. token_file is a path; the file is read
# into memory and never written back, logged, or shown by --print-config.
[peers]
enabled = false # SKYG_PEERS__ENABLED
tcp_interval_secs = 10 # SKYG_PEERS__TCP_INTERVAL_SECS
tcp_timeout_secs = 3 # must be below tcp_interval_secs; SKYG_PEERS__TCP_TIMEOUT_SECS
api_interval_secs = 30 # SKYG_PEERS__API_INTERVAL_SECS
api_timeout_secs = 5 # must be below api_interval_secs; SKYG_PEERS__API_TIMEOUT_SECS
fail_threshold = 2 # consecutive failures before a check flips down; SKYG_PEERS__FAIL_THRESHOLD
request_timeout_secs = 10 # SKYG_PEERS__REQUEST_TIMEOUT_SECS
max_response_bytes = 8388608 # SKYG_PEERS__MAX_RESPONSE_BYTES
max_concurrent_per_peer = 4 # SKYG_PEERS__MAX_CONCURRENT_PER_PEER
max_concurrent_total = 16 # SKYG_PEERS__MAX_CONCURRENT_TOTAL
deny_cidrs = ["169.254.0.0/16", "0.0.0.0/8"] # resolved peer addresses in these ranges are refused; SKYG_PEERS__DENY_CIDRS
# [[peers.peer]]
# name = "minipc1" # ^[a-z0-9][a-z0-9_-]{0,31}$, unique, at most 64
# url = "https://minipc1:1984" # http or https, no userinfo, query or fragment
# token_file = "/run/credentials/skyg-linux-tracker.service/peer-minipc1" # absolute path
# ca_file = "/etc/ssl/private-ca.pem" # optional extra trust anchor
# allow_plain_http = false # required for http:// to a host that is not loopback
# enabled = true