weaviate / Verba

Retrieval Augmented Generation (RAG) chatbot powered by Weaviate
BSD 3-Clause "New" or "Revised" License
4.83k stars 497 forks source link

add domain parameter to serve Verba #226

Open priamai opened 1 week ago

priamai commented 1 week ago

Description

A typical user will want to host Verba behind a web proxy or a load balancer which will be fronted by a domain.

Is this a bug or a feature?

Steps to Reproduce

Launch your Verba locally:

verba start --host localhost --port 8080

Then for example add an ngrok SSL proxy: ngrok http --domain=mycooldomain.com 8080

This will result in a forever Loading Verba screen, because the api.ts file is hardcoded with localhost.

Suggestion

I suggest to add another parameter into Verba which will then override the localhost in api.ts

For example:

verba start --host localhost --domain mycooldomain.com --port 8080

priamai commented 1 week ago

Also for reference I did also attempt to rewrite the host header:

verba start --host localhost --port 8080
ngrok http --domain=mycooldomain.com 8080 --host-header="localhost:8080"

and is still having the same issue.

thomashacker commented 5 days ago

Interesting use case! Thanks for the issue, we're looking into it 🚀