deiucanta / chatpad

Not just another ChatGPT user-interface!
https://chatpad.ai
GNU Affero General Public License v3.0
1.33k stars 252 forks source link

feat: configurable basepath #109

Open ItzDerock opened 5 months ago

ItzDerock commented 5 months ago

Fixes #102

Adds a configurable environment variable BASEPATH that can be set.

docker run --rm -p 8080:80 -e BASEPATH="/chatpadai" chatpadai

Note that the docker container will still serve the files at the root, you will need to configure another reverse-proxy. This just makes the app aware of the basepath so it can properly fetch the config and other assets.