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 · 1 comment
Open

How to set base url? #120

PaulinaPacyna opened this issue Dec 18, 2023 · 1 comment

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.

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

2 participants