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

+27
View File
@@ -0,0 +1,27 @@
# https://tinyauth.app/docs/reference/configuration/
TINYAUTH_APPURL=https://{{ subdomains.tinyauth }}
# Only Caddy talks to Tinyauth; trust its X-Forwarded-* headers.
TINYAUTH_AUTH_TRUSTEDPROXIES={{ docker.hairpin_ip }}
TINYAUTH_LABELPROVIDER=none
TINYAUTH_OIDC_PRIVATEKEYPATH=/data/tinyauth_oidc_key
TINYAUTH_OIDC_PUBLICKEYPATH=/data/tinyauth_oidc_key.pub
# Pocket ID is the only login method (no TINYAUTH_AUTH_USERS).
TINYAUTH_OAUTH_AUTOREDIRECT=pocketid
TINYAUTH_OAUTH_PROVIDERS_POCKETID_NAME=Pocket ID
TINYAUTH_OAUTH_PROVIDERS_POCKETID_CLIENTID={{ vault_tinyauth.pocketid.client_id }}
TINYAUTH_OAUTH_PROVIDERS_POCKETID_CLIENTSECRET={{ vault_tinyauth.pocketid.client_secret }}
TINYAUTH_OAUTH_PROVIDERS_POCKETID_AUTHURL=https://{{ subdomains.pocketid }}/authorize
TINYAUTH_OAUTH_PROVIDERS_POCKETID_TOKENURL=https://{{ subdomains.pocketid }}/api/oidc/token
TINYAUTH_OAUTH_PROVIDERS_POCKETID_USERINFOURL=https://{{ subdomains.pocketid }}/api/oidc/userinfo
TINYAUTH_OAUTH_PROVIDERS_POCKETID_REDIRECTURL=https://{{ subdomains.tinyauth }}/api/oauth/callback/pocketid
TINYAUTH_OAUTH_PROVIDERS_POCKETID_SCOPES=openid email profile groups
# Protected apps. Each needs Pocket ID group membership; paths outside the
# protected ones are also excluded on the Caddy side.
TINYAUTH_APPS_BAIKAL_CONFIG_DOMAIN={{ subdomains.cal }}
TINYAUTH_APPS_BAIKAL_OAUTH_GROUPS={{ tinyauth_admin_group }}
TINYAUTH_APPS_BAIKAL_PATH_BLOCK=^/admin
TINYAUTH_APPS_WATCHER_CONFIG_DOMAIN={{ subdomains.watcher }}
TINYAUTH_APPS_WATCHER_OAUTH_GROUPS={{ tinyauth_admin_group }}
TINYAUTH_APPS_WATCHER_PATH_ALLOW=^/api/