Repository navigation
Expand file tree
/
Copy pathconfig.sbc.example.toml
More file actions
111 lines (95 loc) · 3.47 KB
/
Copy pathconfig.sbc.example.toml
File metadata and controls
111 lines (95 loc) · 3.47 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Copy this file to config.toml for a low-wear, minimum-footprint SBC install.
# It is a complete, valid configuration. Add providers/accounts with
# `eggpool connect` or the provider sections from config.example.toml.
#
# Trade-offs: one SQLite worker connection accepts more dashboard contention;
# diagnostics are disabled or sampled; buffered analytics may lose up to 120s
# after abrupt power loss. Correctness-critical request state remains durable.
[server]
# Deliberate loopback-only override for this low-wear SBC profile. The
# canonical default (see config.example.toml) is host = "0.0.0.0" for LAN
# access; this profile stays local-only. Set a server API key before changing
# this to a LAN bind.
host = "127.0.0.1"
port = 11300
log_level = "INFO"
access_log = false
threads = 1
max_request_body_bytes = 10485760
[upstream]
base_url = "https://opencode.ai/zen/go/v1"
max_connections = 16
max_keepalive = 4
[database]
path = "usage.sqlite3"
busy_timeout_ms = 10000
wal = true
synchronous = "NORMAL"
worker_threads = 1
# Bound WAL file size after checkpoints to 64 MiB. Constrains
# microSD storage consumption without aggressive checkpoint tuning.
journal_size_limit = 67108864
[models]
# This creates the recurring catalog/model-info opportunity; per-row model-info
# TTLs and source cooldowns decide whether external work is due.
refresh_interval_s = 300
startup_refresh = true
[routing]
strategy = "quota_fair"
# Parsed now for the later reactive wire-surface negotiation phase.
[routing.wire_negotiation]
enabled = true
max_concurrent_per_provider = 1
min_negotiation_interval_s = 1.0
rejection_cooldown_s = 300.0
learned_preference_ttl_s = 86400.0
cache_max_entries = 512
[routing.trace]
mode = "off"
sample_rate = 0.0
[readiness_probe]
enabled = false
[model_info]
enabled = false
[metrics]
write_mode = "low_wear"
flush_interval_s = 120
max_buffered_events = 250
timeseries_bucket_s = 300
aggregate_only = true
event_loop_lag_enabled = false
cleanup_interval_s = 86400
[metrics.dispatch_spans]
sample_rate = 0.0
[security]
# Honor forwarded client-attribution headers only from exact peer IPs listed
# here. Browser login accepts X-Forwarded-Proto: https only from these peers.
# Use literal IPs (not hostnames or CIDRs); an empty list ignores forwarding.
trusted_proxies = []
allow_insecure_web_auth = false
[dashboard]
enabled = true
# Canonical public read-only default (matches config.example.toml). The
# loopback bind above keeps this SBC profile local-only regardless.
#
# The exemption applies only before local identity initialization. Once an
# administrator exists, every dashboard page and every `/api/*` route needs a
# browser session, and this setting no longer changes what is reachable.
public = true
[backup]
enabled = false # Full snapshots are opt-in to minimize SBC storage wear.
interval_s = 86400
retain_count = 7
# Enable deliberately when local recovery copies are required.
# ─── Advertised Integration Endpoint ────────────────────────────────
# Uncomment for headless Pi + desktop clients. This is the URL desktops use,
# not the listen socket. Live-reloadable via `eggpool rehash`.
# [integrations]
# advertise_base_url = "http://<pi-lan-ip>:11300/v1"
# Optional local Eggsearch endpoint. It is not started by EggPool and does
# not participate in inference. Enable only when Eggsearch is installed.
# [tools]
# enabled = true
# base_url = "http://127.0.0.1:11320/mcp"
# connect_timeout_s = 2.0
# read_timeout_s = 3.0