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
parent
0833a13fb4
commit
d74485bdd6
@ -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 new issue