Skip to content

Umami in subdirectory of current host #144

Description

@mschoeffmann

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions