Caddy role: single files/Caddyfile.j2 template (overlord pattern)

- template moved to ansible/files/Caddyfile.j2, tasks folded into main.yaml
This commit is contained in:
2026-09-06 09:01:46 +00:00
parent c4a6425926
commit 2524f0c46f
3 changed files with 10 additions and 23 deletions
+20
View File
@@ -0,0 +1,20 @@
{{ www_host }} {
# PocketBase Admin UI and REST API (files included)
redir /_ /_/
handle /_/* {
reverse_proxy {{ docker_container }}:{{ cms_port }}
}
handle /api/* {
reverse_proxy {{ docker_container }}:{{ cms_port }}
}
# TanStack Start frontend
handle {
reverse_proxy {{ docker_container }}:{{ www_port }}
}
}
{{ cms_host }} {
redir / /_/
reverse_proxy {{ docker_container }}:{{ cms_port }}
}