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:
@@ -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 }}
|
||||
}
|
||||
Reference in New Issue
Block a user