Open nmaludy opened 6 years ago
Same issue here, we have to add the following routes on the ALB side:
/api/
/routes
/logo.svg
If we could just route /fabio-ui/
or something like this, it would be much easier.
Hitting the same wall, used -ui-content-path
to serve Consul UI behined Traefik with PathPrefix rules.. Is there any progress with this?
If using ALB, this will work:
Problem Description
I'm trying to serve the Fabio UI behind an nginx reverse proxy with a URL prefix of
/fabio
. This means i would like the URL of the UI to behttps://server.domain.tld/fabio/routes
and the API to behttps://server.domain.tld/fabio/api
. The health check should behttps://server.domain.tld/fabio/api
and the manual should behttps://server.domain.tld/fabio/manual
.I have the following nginx config:
Using this config i can hit
/fabio/
and it redirects me to/fabio/routes
, however the screen that is rendered has a blank routes list.Looking at the code it appears that the UI has a hard coded path that it's using for the API in Javascript
https://github.com/fabiolb/fabio/blob/master/admin/ui/route.go#L123-L139
So
/api/routes
and/api/paths
are hard coded. To get around this i had to add another reverse location for/api/
:Ideas
It would be great if we could specify a custom prefix in the config so i could serve everything from the
/fabio/
prefix with a single reverse proxy location.FYI: it appears that Consul has the same problem with their API endpoint (it's hard coded as
/v1/
)