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

+1 -1
View File
@@ -37,6 +37,6 @@ WORKDIR /etc/uberbringer
# 0.0.0.0 and trusted_proxies must hold the proxy's address. Mount a volume on
# /var/lib/uberbringer to keep the subscriptions' state across containers.
ENV UBERBRINGER_CONFIG=/etc/uberbringer/config.toml \
UBERBRINGER_NTFY_STATE_DIR=/var/lib/uberbringer
UBERBRINGER_STATE_DIR=/var/lib/uberbringer
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/uberbringer"]