diff --git a/docker/Caddyfile b/docker/Caddyfile index a18f16b..e6c5799 100644 --- a/docker/Caddyfile +++ b/docker/Caddyfile @@ -48,6 +48,14 @@ } } + @plausible path /js/script.js /api/event + handle @plausible { + rewrite /js/script.js /js/script.file-downloads.hash.outbound-links.tagged-events.js + reverse_proxy https://plausible.io { + header_up Host {http.reverse_proxy.upstream.hostport} + } + } + # Basic compression for better performance encode gzip }