Add analytics tunnels to dev Caddyfile: /stats/* and /assets/perf.js

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-20 18:31:36 +01:00
parent bc2b386837
commit e2797e9731

View File

@@ -1,6 +1,20 @@
:80 {
root * /app/public
handle_path /stats/* {
rewrite * {uri}
reverse_proxy https://tools-security.esy-web.dev {
header_up Host tools-security.esy-web.dev
}
}
handle /assets/perf.js {
rewrite * /beacon.min.js
reverse_proxy https://static.cloudflareinsights.com {
header_up Host static.cloudflareinsights.com
}
}
php_fastcgi php:9000 {
trusted_proxies private_ranges
}