Replace ntfy.state_dir with a top-level [state] dir
Security / Vulnerability check (push) Successful in 45s
Test / Lint and test (push) Successful in 2m1s

The job store is to keep its database in the directory that holds the
ntfy subscriptions' state files, so the directory moves to a section
of its own: [state] dir, or UBERBRINGER_STATE_DIR, in place of
[ntfy] state_dir. For now only the subscriptions use it. It still has
no default and is still required with a subscription, and the checks
at start name state.dir in their errors.

install.sh writes [state] dir into new configs, and the Docker image
sets UBERBRINGER_STATE_DIR. ntfy.state_dir has never been in a
release, so its CHANGELOG entry changes in place and there is no
fallback: a config that still sets it fails to load with an unknown
key until the line moves to [state].

The image itself was not built, since the workstation has no Docker.

Part of stage 1b of docs/plans/job-store.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
57_WolveandClaude Opus 5.5 committed 2026-12-01 12:21:29 -06:00
1 parent f0b5bf020e
commit 66531e7314
16 files changed
+92 -68

No files matched your search

+7 -7
View File
@@ -83,13 +83,6 @@
timezone = "Local"
time_layout = "02 Jan 15:04"
[ntfy]
# The directory the subscriptions below keep their state in, so that a
# restart neither prints a message twice nor loses one. Required with a
# subscription. install.sh writes "/var/lib/uberbringer", and the Docker
# image sets it with UBERBRINGER_NTFY_STATE_DIR.
state_dir = ""
[ntfy.format]
# How notifications are laid out, from the notify and ntfy modules and
# from the subscriptions. "auto" picks the form from the priority: urgent
@@ -144,6 +137,13 @@
size = 100 # jobs that may wait; more get 503
history = 1000 # finished jobs whose status is kept
[state]
# The directory the ntfy subscriptions keep their state in, so that a
# restart neither prints a message twice nor loses one. Required with a
# subscription. install.sh writes "/var/lib/uberbringer", and the Docker
# image sets it with UBERBRINGER_STATE_DIR.
dir = ""
[images]
timeout = "10s"
max_bytes = 10485760 # 10 MiB download limit