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>
32 lines
921 B
YAML
32 lines
921 B
YAML
# Tinyauth: Caddy forward_auth target that sends people to Pocket ID before
|
|
# they reach admin pages of apps without their own SSO (see the (sso)
|
|
# snippet in Caddyfile.j2). Only reachable through Caddy on the lava network.
|
|
- name: make tinyauth directories
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
loop:
|
|
- /opt/stacks/tinyauth
|
|
|
|
- name: Template out the tinyauth compose file
|
|
ansible.builtin.template:
|
|
src: tinyauth-compose.yml.j2
|
|
dest: /opt/stacks/tinyauth/compose.yml
|
|
owner: root
|
|
mode: '0644'
|
|
|
|
- name: Template out the tinyauth .env file
|
|
ansible.builtin.template:
|
|
src: tinyauth-env.j2
|
|
dest: /opt/stacks/tinyauth/.env
|
|
owner: root
|
|
mode: '0640'
|
|
group: docker
|
|
diff: false # contains the Pocket ID client secret
|
|
|
|
- name: deploy tinyauth stack
|
|
community.docker.docker_compose_v2:
|
|
project_src: /opt/stacks/tinyauth
|
|
files:
|
|
- compose.yml
|