Skip to content
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

How to set base url? #120

Open
PaulinaPacyna opened this issue Dec 18, 2023 · 4 comments
Open

How to set base url? #120

PaulinaPacyna opened this issue Dec 18, 2023 · 4 comments

Comments

@PaulinaPacyna
Copy link

PaulinaPacyna commented Dec 18, 2023

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.

@bashofmann
Copy link
Collaborator

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: qdrant/qdrant-web-ui#94.

@PylotLight
Copy link

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?

@ZainyAct
Copy link

Any solutions as of yet?

@PylotLight
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants