Add default-server ntfy auth (fix 403 on protected topics)
build-and-push / docker (push) Has been cancelled

The "send test" action, admin alerts and feeds without their own
credentials now use configurable default-server token / basic auth,
so publishing works against ntfy servers with access control enabled.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
dimon
2026-06-02 21:47:12 +08:00
parent bf52bc3079
commit e696537fe1
7 changed files with 50 additions and 3 deletions
+5
View File
@@ -90,6 +90,11 @@ class Settings(SQLModel, table=True):
id: Optional[int] = Field(default=1, primary_key=True)
default_ntfy_server: str = "https://ntfy.sh"
# Default-server auth, used as a fallback for feeds without their own and
# for the "send test" action (for ntfy servers with access control).
default_ntfy_token: str = ""
default_ntfy_username: str = ""
default_ntfy_password: str = ""
check_interval: int = 5 # minutes (global default)
# Auth toggle (per-user credentials live in the User table).