caddy/conf.d/plausible.bbaovanc.com

20 lines
666 B
Plaintext

# vim: ft=caddyfile
plausible.bbaovanc.com {
encode zstd gzip
import hsts
import log
rewrite /js/bobalytics.js /js/plausible.js
rewrite /js/bobalytics.outbound-links.js /js/plausible.outbound-links.js
rewrite /js/bobalytics.hash.outbound-links.js /js/plausible.hash.outbound-links.js
rewrite /js/bobalytics.exclusions.outbound-links.js /js/plausible.exclusions.outbound-links.js
rewrite /js/bobalytics.exclusions.hash.outbound-links.js /js/plausible.exclusions.hash.outbound-links.js
rewrite /js/bobalytics.local.outbound-links.js /js/plausible.local.outbound-links.js
reverse_proxy localhost:84
import basicerrors
}