Vince fixed

This commit is contained in:
2026-09-06 16:34:23 +00:00
parent 605b4b16cc
commit 3929d3f0b2
6 changed files with 54 additions and 14 deletions
+12 -4
View File
@@ -8,10 +8,11 @@
reverse_proxy {{ docker_container }}:{{ cms_port }}
}
# First-party analytics (Vince) — script (/stats/js/script.js) and event
# endpoint (/stats/api/event) proxied same-origin so they survive ad
# blockers and never touch a third-party domain.
handle /stats/* {
# First-party analytics (Vince) — the tracker script and event endpoint
# are proxied same-origin with the /stats prefix stripped (vince serves
# /js/script.js and /api/event), so they survive ad blockers and never
# touch a third-party domain.
handle_path /stats/* {
reverse_proxy {{ vince_container }}:{{ vince_port }}
}
@@ -25,3 +26,10 @@
redir / /_/
reverse_proxy {{ docker_container }}:{{ cms_port }}
}
# Vince analytics dashboard (login-protected). DNS for this host must point
# at this server; the tracker script itself stays on the www host at
# /stats/* — this is only for humans reading the dashboard.
{{ stats_host }} {
reverse_proxy {{ vince_container }}:{{ vince_port }}
}