Files
homelab/roles/caddy/vars/main.template.yml
Alex Frantz 2a64f5a379
All checks were successful
Deploy Containers / Prepare (push) Successful in 33s
fix tinyauth not being added properly
2025-07-30 00:12:30 -04:00

32 lines
643 B
YAML

# caddy
CADDY_CLOUDFLARE_TOKEN:
caddy_snippets:
tinyauth_forwarder:
- "forward_auth tinyauth:3000 {"
- " uri /api/auth/caddy"
- "}"
caddy_sites:
- domains:
- "domain.net"
- "*.domain.net"
tls:
dns:
provider: cloudflare
token: "{{ CADDY_CLOUDFLARE_TOKEN }}"
matchers:
- name: home
type: host
value: domain.net
- name: code
type: host
value: code.domain.net
handlers:
- matcher: home
reverse_proxy: glance:8080
- matcher: code
reverse_proxy: codeserver:8443
import_tinyauth: true
- respond 404