huggingface / chat-ui

Open source codebase powering the HuggingChat app
https://huggingface.co/chat
Apache License 2.0
7.69k stars 1.14k forks source link

chat-ui behind proxy #1612

Open ran-haim opened 9 hours ago

ran-haim commented 9 hours ago

I am unable to run chat-ui behind istio. I didn't find a way to set baseurl, so all links/redirects are broken.

evalstate commented 9 hours ago

You need to set APP_BASE at build time to configure the base path - so a rebuild with that set should fix it?

ran-haim commented 9 hours ago

From what I've seen /chat is the default...not all links/redirects are /chat - i've also seen /_app.

nsarrazin commented 9 hours ago

The default is / actually. For HuggingChat we use /chat and we set a custom build argument APP_BASE as you can see here.

You could build the image yourself with a custom APP_BASE that suits your needs. The assets will then be behind ${APP_BASE}/_app, see for example on HuggingChat: https://huggingface.co/chat/_app/immutable/entry/start.Ba9czHTP.js