locust icon indicating copy to clipboard operation
locust copied to clipboard

Hard coded path make it impossible to host the UI on a path (instead of the domain root)

Open jnanajneya opened this issue 1 year ago • 3 comments

Prerequisites

Description

I am trying to host the locust UI on a path like this: www.mydomain.com/tests/locust

But the full UI paths (like this one ) prevent me from doing that.

Can these paths be relative (with or without a configurable <base> url)?

Happy to work on it if this is of value/agreeable.

jnanajneya avatar Sep 20 '24 15:09 jnanajneya

Yes, it's important. I want to run locust from Gitlab Ci jobs, and I need a relative way, for example example.com/222222/ where 222222 is the job ID

kavlevru avatar Sep 20 '24 17:09 kavlevru

Sounds good to have it, I am also need it

Grommash9 avatar Oct 01 '24 07:10 Grommash9

Hi @gratus-acuitymd, if you're willing to work on it that would be great! Just keep in mind that the API requests in locust/webui/src/redux/api/swarm.ts may equally need a relative or configurable base URL

andrewbaldwin44 avatar Oct 03 '24 08:10 andrewbaldwin44