You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But then thanos-compact:10902/bucket returns 404. / returns html with all css/js sources leading to /static
What you expected to happen:
I expect at least html would have links to /bucket/static.
Would be much better to also have --web.route-prefix option for compact too.
How to reproduce it (as minimally and precisely as possible):
hi, I just tested against current master with --web.external-prefix=/bucket and it is working correctly:
I think we can probably safely close this issue
I think this was closed prematurely. --web.external-prefix= is supposed to be for the external path as referred to in links but is supposed to serve the content still from / --web.route-prefix= is supposed to actually serve it on a subpath, unfortunately compact currently lacks this flag.
--web.route-prefix="" Prefix for API and UI endpoints. This allows thanos UI to be served on a sub-path. This option is analogous to --web.route-prefix of Promethus.
--web.external-prefix="" Static prefix for all HTML links and redirect URLs in the UI query web interface. Actual endpoints are still served on / or the web.route-prefix. This allows thanos UI to be served behind a reverse proxy that strips a URL sub-path.
If connecting to localhost it should be http://localhost:10902/loaded but on the reverse proxy it would be http://external/prefix/loaded which would get rewritten as http://internal/loaded
Thanos, Prometheus and Golang version used:
master-2020-03-27-4e5c2f25
Object Storage Provider:
GCP
What happened:
I'm trying to get new web UI of thanos-compact behind reverse proxy under path
/bucket
.Starting container wit such arguments:
But then
thanos-compact:10902/bucket
returns 404./
returns html with all css/js sources leading to/static
What you expected to happen:
I expect at least html would have links to
/bucket/static
.Would be much better to also have
--web.route-prefix
option for compact too.How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components:
The text was updated successfully, but these errors were encountered: