Hi and thanks for the helpful plugin!
I have a question about how to make the script use a relative path to the current host.
The reason is that I’m using a proxy that handles all domains. This proxy routes the general path /_umami to a self-hosted Umami instance for all domains.
It would be great if I could set host: ‘/_umami’ (alongside proxy: false of course) so the script and endpoint automatically use the current host. This would result in https://example.com/_umami/script.js and https://example.com/_umami/api/send (just like the original script does).
How could this be archived?
Hi and thanks for the helpful plugin!
I have a question about how to make the script use a relative path to the current host.
The reason is that I’m using a proxy that handles all domains. This proxy routes the general path
/_umamito a self-hosted Umami instance for all domains.It would be great if I could set
host: ‘/_umami’(alongsideproxy: falseof course) so the script and endpoint automatically use the current host. This would result inhttps://example.com/_umami/script.jsandhttps://example.com/_umami/api/send(just like the original script does).How could this be archived?