Skip to content

Commit

Permalink
add pa.aosus.org
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed Oct 21, 2024
1 parent ddf0842 commit 3f719df
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions caddy/configs/plausible.caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pa.aosus.org {
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
}
handle_errors {
# handle_errors is only triggerd on erros from Caddy and not the proxy, that's why we don't specifiy any errors here.
rewrite * /proxy_error_page.html
file_server {
root /srv/
}
}
rewrite /js/pls.js /js/plausible.js
rewrite /js/pls2.js /js/plausible.hash.js
rewrite /js/pls3.js /js/plausible.outbound-links.js
rewrite /js/pls4.js /js/plausible.hash.outbound-links.js
reverse_proxy plausible:8000
encode zstd gzip
}

0 comments on commit 3f719df

Please sign in to comment.