Tinyauth: Pocket ID login in front of Baikal admin and Changedetection UI

Caddy (sso) snippet does forward_auth to Tinyauth for a given matcher;
Tinyauth sends people to Pocket ID and requires tinyauth_admin_group.
Baikal: only /admin. Changedetection: everything except /api/.
New subdomain auth.thesatelliteoflove.com (dropped from removed_records).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-27 12:04:34 -07:00
1 parent 0bb7e8a9e4
commit 2351740aa7
8 files changed
+110 -3

No files matched your search

+22
View File
@@ -63,6 +63,16 @@
}
}
# Require a Pocket ID login (via Tinyauth) for requests matching the named
# matcher passed as the argument, e.g. "import sso @admin". Tinyauth also
# checks group membership per app (tinyauth-env.j2).
(sso) {
forward_auth {args[0]} tinyauth:3000 {
uri /api/auth/caddy
copy_headers Remote-User Remote-Email Remote-Groups
}
}
# Every proxied site: log, HSTS and the shared headers.
(site) {
import logging
@@ -76,6 +86,12 @@
reverse_proxy pocket-id:1411
}
{{ subdomains.tinyauth }} {
import site
import no_framing
reverse_proxy tinyauth:3000
}
paper.thesatelliteoflove.com {
import site
import no_framing
@@ -87,6 +103,9 @@ cal.thesatelliteoflove.com {
import no_framing
redir /.well-known/caldav /dav.php 302
redir /.well-known/carddav /dav.php 302
# Web admin needs Pocket ID; CalDAV/CardDAV (/dav.php) stays as is.
@admin path /admin /admin/*
import sso @admin
reverse_proxy baikal-baikal-1:80
}
@@ -111,6 +130,9 @@ loclog.thesatelliteoflove.com {
watcher.thesatelliteoflove.com {
import site
import no_framing
# UI needs Pocket ID; the API (own key) stays reachable for scripts.
@ui not path /api/*
import sso @ui
reverse_proxy changedetection:5000
}