- www host: /_* and /api/* proxy to pocketbase :8090, everything else to the TanStack app; redir /_ /_/ for the admin path - cms host unchanged: redir / -> /_/ - migration: legacy per-host marker blocks are removed before the new combined block is installed - cms.ts: PB file urls are now same-origin relative (/api/files/...) — browsers could never load the old 127.0.0.1:8090 urls; validated the rendered Caddyfile with caddy:2
27 lines
742 B
YAML
27 lines
742 B
YAML
---
|
|
registry: registry.tanshu.com
|
|
username: ta-registry
|
|
password: ff28a01f00c0f39315d94cd9dcb1e554968dba25676a8ea5f2be34e96a9a099f
|
|
|
|
title: mozimo
|
|
tag: latest
|
|
|
|
host_directory: "/var/lib/{{ title }}-staging"
|
|
|
|
www_host: "staging.mozimo.in"
|
|
www_port: 3000
|
|
cms_host: "cms.mozimo.in"
|
|
cms_port: 8090
|
|
|
|
docker_network: "{{ title }}_net"
|
|
|
|
# image tag: deploy.sh passes -e image_tag=<commit>; "tag" is the fallback
|
|
# when running the playbook by hand — rollback = -e image_tag=<older-commit>
|
|
docker_image: "{{ registry }}/{{ title }}:{{ image_tag | default(tag) }}"
|
|
docker_container: "{{ title }}-staging"
|
|
|
|
# caddy publishes www (SSR + /api/* + /_/* -> pocketbase) and cms (admin)
|
|
|
|
caddy_container: caddy
|
|
caddyfile_path: /var/lib/caddy/conf/Caddyfile
|