mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
* Update .env.example * Update README.md * Update bing_jailbreak_info.md * Update heroku.md * Update SECURITY.md * Update CONTRIBUTING.md * Update CODE_OF_CONDUCT.md * Update LICENSE.md * Update SECURITY.md * Update coding_conventions.md * Update documentation_guidelines.md * Update testing.md * Update heroku.md * Update google_search.md * Update introduction.md * Update make_your_own.md * Update stable_diffusion.md * Update wolfram.md * Update proxy.md * Update user_auth_system.md * Update bing_jailbreak_info.md * Update multilingual_information.md * Update project_origin.md * Update tech_stack.md * Update apis_and_tokens.md * Update docker_install.md * Update linux_install.md * Update mac_install.md * Update windows_install.md * Update install.js
900 B
900 B
Proxy
If your server cannot connect to the chatGPT API server by some reason, (eg in China). You can set a environment variable PROXY. This will be transmitted to node-chatgpt-api interface.
Warning: PROXY is not reverseProxyUrl in node-chatgpt-api
Set up proxy in local environment
-
Option 1: system level environment
export PROXY="http://127.0.0.1:7890" -
Option 2: set in .env file
PROXY="http://127.0.0.1:7890"
Change http://127.0.0.1:7890 to your proxy server
Set up proxy in docker environment
set in docker-compose.yml file, under services - api - environment
api:
...
environment:
...
- "PROXY=http://127.0.0.1:7890"
# add this line ↑
Change http://127.0.0.1:7890 to your proxy server