WongSaang / chatgpt-ui

A ChatGPT web client that supports multiple users, multiple languages, and multiple database connections for persistent data storage. Provides Docker images and quick deployment scripts.
https://wongsaang.github.io/chatgpt-ui/
MIT License
1.53k stars 338 forks source link

How to deploy client to subdirectory? https://subdomain.domain.com/subdirectory #224

Open rexeo-asia opened 1 year ago

rexeo-asia commented 1 year ago

Discussed in https://github.com/WongSaang/chatgpt-ui/discussions/223

Originally posted by **rexeo-asia** June 17, 2023 Reason: I have a common domain: https://subdomain.domain.com/subdirectory, and each subdirectory is a reverse proxy of another app server machine across my on premise office. I've tried ask GPT3.5 for help but unable to do so if react can refer like this: https://skryvets.com/blog/2018/09/20/an-elegant-solution-of-deploying-react-app-into-a-subdirectory/ but for nuxt3, I did try add /subdirectory/ to app.baseUrl and it work to serve the pages, however the django APIs(/api/**) messed up, any pointers?
rexeo-asia commented 1 year ago
image