How to set base url?
Hi,
I am using the https://github.com/qdrant/qdrant-helm chart to deploy the qdrant application on kubernetes cluster. The dasjboard is correctly displayed under localhost:6333/dashboard, using port-forwarding to the pod created by statefulset. I would like to expose the application under a url with a VirtualService. However, the app cannot be hosted at / path (it is reserved), so I am mapping the requests coming from /ABC/DEF/ to /.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: qdrant
spec:
hosts:
- '*'
http:
- match:
- uri:
prefix: "/ABC/DEF/"
rewrite:
uri: "/"
route:
- destination:
host: qdrant.db.svc.cluster.local
port:
number: 6333
The app seems to be partly visible. /ABC/DEF displays version info ({"title":"qdrant - vector search engine", "version":"1.7.2"}
However /ABC/DEF/dashboard loads a blank page, with an icon and "Qdrant Web UI" in the tab title. As far as I managed to debug this issue, the app tries to query the /dashboard, /telemetry, and /collections endpoints to load the data and fails. Is there a possibility to set the base url in the application, so the app knows that it must refer to /ABC/DEF/dashboard, /ABC/DEF/telemetry, and /ABC/DEF/collections?
Thank you in advance.
I had a quick look at https://github.com/qdrant/qdrant-web-ui and the base path looks to be hard-coded there to /dashboard/ without a way to change this afterwards.
There is an open ticket for this: https://github.com/qdrant/qdrant-web-ui/issues/94.
I'm still stuck on this one as well, is there a way to rewrite with uri/bootstrap config in the configmap to use a custom host path prefix?
Any solutions as of yet?
@ZainyAct I've resolve this issue for our internal version using a combination of rebuilding frontend from source with build": "vite build --base './'",
And rewriting /dashboard/collections type paths to /collections via our istio service mesh.