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>
This commit is contained in:
parent
0833a13fb4
commit
d74485bdd6
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue