update stat script (plausible, proxied)

to proxy script, added following to my apache vhost config:

  ProxyRequests off
  ProxyPreserveHost off
  SSLProxyEngine on
  <Location /js/script.js>
    ProxyPass https://plausible.io/js/script.js
    ProxyPassReverse https://plausible.io/js/script.js
  </Location>

  <Location /api/event>
    ProxyPass https://plausible.io/api/event
    ProxyPassReverse https://plausible.io/api/event
  </Location>
main
Dominic Reich 1 year ago
parent 0833a13fb4
commit d74485bdd6
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -1 +1,4 @@
<script defer data-domain="oe7drt.com" src="https://plausible.io/js/script.js"></script>
{{ if hugo.IsProduction }}
<script defer data-api="/api/event" data-domain="oe7drt.com" src="/js/script.js"></script>
{{ end }}

Loading…
Cancel
Save