Remote deployment #111
Replies: 2 comments 5 replies
-
From my quick scan, this project appears to expose the API keys in the browser code. So even if you modified the GUI to hide settings, the API keys can still be obtained and exposed. Not an issue I suppose if you are using Groq while it's free. |
Beta Was this translation helpful? Give feedback.
-
After few tries and errors I've managed to make it working and wanted to share my setup ;) Ports:I strongly suggest to leave defaults ports of docker-compose.yml:If you want to make it working over domain - you need to fallow documentation and adjust it to IP or domain name. That's my working config:
Where If you decide to use IP - then you can visit your IP with port to display frontend, so example: http://192.168.40.10:3000 Reverse proxy:If you decide that you want to run it over https and friendly domain - you need to deploy reverse proxy. I'm using Nginx Proxy Manager, but you can deploy or use any other proxy you want. To avoid issues with CORS I strongly suggest to proxy everything under single domain - both frontend and backend. In my case it would be That's GUI setup:Be aware of proxy codeAnd that's code generated by npm if you want to deploy it with different tools:
SecurityAs you hopefully noticed - I'm using my Access List which would allow to visit my instance from local network by my family members or over VPN to my home. Be aware that all your search history and API keys are exposed under cog setting page and potentially visible in requests (I didn't review code that deeply). That's just one of the reason why ItzCrazyKns advising to not expose this service to public at this point of development. Until proper login panel, user management and security would be improved - I strongly advise to use it locally. Final words:Thank you for bringing this project to live! You are all doing brilliant work with it's development. I hope that my notes would be useful to others ;) |
Beta Was this translation helpful? Give feedback.
-
Get help from the community regarding deployment on a remote server or exposing it locally to your network.
Beta Was this translation helpful? Give feedback.
All reactions