-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to run behind Traefik when hosted under a subpath? #107
Comments
The backend actually doesn't return any URLs at all. I could change the requests we're starting ourselves in the frontend, I'll investigate if there's some way to workaround this though... 👍 |
How do you solve this in Grafana? |
Alright, I found a solution. The backend can simply "hotfix" all the static urls/resources in The dynamic urls (calls to I'll add that right now... 😄 |
Grafana allows configuration of the path it's at: see here for more information. The link provides an example setup:
|
update: I'll probably finish this feature today |
@aodj |
$ docker pull quay.io/cloudhut/kowl@sha256:f0c9ff5bb2d8b5945729b3e444d9290ab2c7ac0992fdbbc083e966d0bf63f06e Edit turns out I just don't know how to use quay.io 🤦 |
And yes, works great! Thanks for the efforts of everyone to make this work, it's greatly appreciated. |
Perfect glad it's working, thank you for reporting back. |
I'm running a number of administrative websites behind Traefik, with each being under a specific path:
traefik.mydomain.com/prometheus
,traefik.mydomain.com/grafana
and so on, and wish to do the same with Kowl.When I set Kowl up under
traefik.mydomain.com/kafka
the running pod returns an error about the requested path not being found:This is easily fixed by using Traefik's
StripPrefix
middleware to remove the/kafka
path from the forwarded request. This results in the pod responding to the initial requests, but then subsequently failing to load any resources, since the paths being returned are simply relative to the root (ie/
). The resource paths are all missing this extra/kafka
element: ie loadingtraefik.mydomain.com/static/css/2.93c9421b.chunk.css
instead oftraefik.mydomain.com/kafka/static/css/2.93c9421b.chunk.css
.This is mentioned in the Traefik docs:
Is there a way to inform the frontend about this extra prefix and have it return urls that resolve?
The text was updated successfully, but these errors were encountered: