Files
mygit/docker/caddy/Caddyfile.e2e
T
DuckQ1u 93d1b7c3d3
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
first commit
2026-04-22 19:51:20 +07:00

18 lines
611 B
Caddyfile

# E2E Test Caddyfile - Routes analytics requests to the analytics service
:80 {
log {
output stdout
format json
}
# Proxy analytics requests with any prefix (e.g. /.ghost/analytics/ or /blog/.ghost/analytics/)
@analytics_paths path_regexp analytics_match ^(.*)/\.ghost/analytics(.*)$
handle @analytics_paths {
rewrite * {re.analytics_match.2}
reverse_proxy {$ANALYTICS_PROXY_TARGET}
}
# Default response for healthcheck and other requests
# E2E tests create Ghost instances dynamically, so we don't proxy to a fixed server
respond "OK" 200
}