SamurAIGPT / EmbedAI

An app to interact privately with your documents using the power of GPT, 100% privately, no data leaks
https://www.thesamur.ai/?utm_source=github&utm_medium=link&utm_campaign=github_privategpt
MIT License
2.79k stars 301 forks source link

Change ports #64

Open angel1st opened 1 year ago

angel1st commented 1 year ago

Is there an easy way to change ports inside the code - both client and server? I looked at it, but didn't able to find anything specific. I would like to dockerize both client and server, and make sure ports are inside docker-composer file. Thanks!

nesimtunc commented 1 year ago

Yes, you can run the app like with custom port:

Replace this: app.run(host="0.0.0.0", debug = False) with this: app.run(host="0.0.0.0", port=3001, debug = False)

And update 5000 to 3001 in client side.

angel1st commented 1 year ago

Thanks @nesimtunc! This will solve server side port configuration. How about client side port config?

nesimtunc commented 1 year ago

Hi @angel1st I don't know about next.js but here's what I found: https://nextjs.org/docs/pages/building-your-application/upgrading/version-11#port-is-now-supported-for-next-dev-and-next-start