[Question]: How to ensure LibreChat uses proxy? #1378
-
What is your question?Hi, everyone! First one - which is correct format for PROXY entry in configuration file? I assumed usual My ENDPOINTS section in .env file is as follows (everything else is on default settings - i'm in a test environment so its fine :P):
When I tried going into LibreChat container and curl-ing https://ifconfig.co with My proxy server is a simple Squid proxy server hosted on GCP, confirmed working from my local PC. Thanks in advance! More Detailsdescribed above What is the main subject of your question?Endpoints, Other ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
the PROXY setting is only intended for proxying requests to the AI provider endpoints, not for the entire app/container. Setting it should use your proxy for requests to OpenAI servers. If you are expecting to be using your proxy from the container, this is unrelated to LibreChat and would need to be a docker configuration on your part. Note not all providers support an explicit proxy setting, namely Google. In this case, a global setting is necessary, and may also address your concern of proxying all server requests: #1372 This is not yet developed and is not a big priority but will get around to it eventually. PRs welcome |
Beta Was this translation helpful? Give feedback.
The format looks correct. Look into mitmproxy. It's not super user friendly but this is what I use to test that the proxy is actually pinged.