Repository navigation
sitescope 1.6.0
sitescope 1.6.0
TOML. The config may now be config.toml, written by a person, with the
same keys, defaults and checks as JSON. The NixOS module still writes
JSON, so NixOS hosts see no change. Every config example in the docs
comes in TOML, JSON and Nix.
Features
- A config ending in
.tomlis read as TOML, and one ending in.jsonas
JSON. Both go through the same strict loader, so an unknown key fails
the same way, with its path; a TOML syntax error gives its line. - The CLI looks for
/etc/sitescope/config.tomlas well as
config.json, and asks you to remove one if both exist. sitescope configprints the effective config as TOML;-format json
prints JSON, and-format nixprints NixOS settings.sitescope config -defaultsprints every key with its built-in default,
without reading a config. The configuration reference on the site is
that output with comments, and a test keeps the two equal.- The docs' config examples are written in TOML; the site build adds
JSON and Nix versions, as tabs, with the same writer as
sitescope config. A flake check evaluates that writer's Nix against
the JSON it came from. - Durations print without zero units:
"1h", not"1h0m0s". - The effective config shows two defaults it used to leave out: an HTTP
target'slatencyandmail.banner.latency.
Bug fixes
dns.delegationZoneswas accepted but never used. It's gone, so a
config that sets it fails to load instead of doing nothing.
Breaking changes
sitescope configprints TOML by default. Use-format jsonfor the
1.5.0 output.dns.delegationZonesfails to load. Remove it.- A config file must end in
.tomlor.json.
Upgrade notes
- Pin the release commit in the infra flake and redeploy, then
sitescope unlockon the hub host. - A JSON config needs no change. To move a hand-written one to TOML,
writeconfig.toml, runsitescope config -config config.toml -check,
and point the unit at it. - Rollback:
- To 1.5.x, two-way, while the config stays JSON. 1.5.x can't read
config.toml, and refuses it rather than guessing, so roll a TOML
config back to its JSON form along with the binary. - To 1.4.2, one-way, as for 1.5.0: restore the 1.4 config too.
- To 1.5.x, two-way, while the config stays JSON. 1.5.x can't read
- Verify: the footer and
/status.jsonshow1.6.0+<rev>, and the check
count is the same as before the upgrade.