Enhancement: Support for deploying librechat on a /subdirectory #1701
Replies: 3 comments 7 replies
-
Thanks for your suggestion. I think this is a niche case but would be nice to have. I don't think it would be too involved to implement but it would need tinkering with a setup like yours. Given other issues, I'm not sure when I will get to it, but this would need some configuration as suggested here: https://stackoverflow.com/questions/77666915/how-to-run-a-vite-react-app-from-a-subfolder PRs welcome for this |
Beta Was this translation helpful? Give feedback.
-
Just opened a PR implementing this feature: #9155 |
Beta Was this translation helpful? Give feedback.
-
Just started using LibreChat. @jpsfs Thanks a lot for this feature! I use Nginx as a reverse proxy and most of the stuff seems to work flawlessly with:
The only thing is that the Is something missing on my side? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What features would you like to see added?
Currently, as far as I can tell, it is not possible to host librechat on a website as part of a subdirectory, e.g., "www.mysite.com/librechat" is not possible, as the code for getting assets seems to depend on absolute paths.
More details
Minimal anonymised version of my nginx config.
Which components are impacted by your request?
No response
Pictures
From behind reverse proxy:

On localhost:

Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions