From 65a24c16bcc276c12922364d2bfa34ef589c27fe Mon Sep 17 00:00:00 2001 From: Yidadaa Date: Sat, 24 Jun 2023 00:29:47 +0800 Subject: [PATCH] doc: #695 how to use a proxy with password in docker --- README.md | 12 +++++++----- README_CN.md | 6 ++++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 791e0e35c..148c137f8 100644 --- a/README.md +++ b/README.md @@ -19,15 +19,10 @@ One-Click to get well-designed cross-platform ChatGPT web UI. [网页版](https://chatgpt.nextweb.fun/) / [客户端](https://github.com/Yidadaa/ChatGPT-Next-Web/releases) / [反馈](https://github.com/Yidadaa/ChatGPT-Next-Web/issues) / [QQ 群](https://github.com/Yidadaa/ChatGPT-Next-Web/discussions/1724) / [打赏开发者](https://user-images.githubusercontent.com/16968934/227772541-5bcd52d8-61b7-488c-a203-0330d8006e2b.jpg) [web-url]: https://chatgpt.nextweb.fun - [download-url]: https://github.com/Yidadaa/ChatGPT-Next-Web/releases - [Web-image]: https://img.shields.io/badge/Web-PWA-orange?logo=microsoftedge - [Windows-image]: https://img.shields.io/badge/-Windows-blue?logo=windows - [MacOS-image]: https://img.shields.io/badge/-MacOS-black?logo=apple - [Linux-image]: https://img.shields.io/badge/-Linux-333?logo=ubuntu [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web) @@ -191,6 +186,7 @@ If you do not want users to input their own API key, set this value to 1. If you do not want users to use GPT-4, set this value to 1. ## Requirements + NodeJS >= 18, Docker >= 20 ## Development @@ -243,6 +239,12 @@ docker run -d -p 3000:3000 \ yidadaa/chatgpt-next-web ``` +If your proxy needs password, use: + +```shell +-e PROXY_URL="http://127.0.0.1:7890 user pass" +``` + ### Shell ```shell diff --git a/README_CN.md b/README_CN.md index 104b07eda..f1be5cc98 100644 --- a/README_CN.md +++ b/README_CN.md @@ -147,6 +147,12 @@ docker run -d -p 3000:3000 \ yidadaa/chatgpt-next-web ``` +如果你的本地代理需要账号密码,可以使用: + +```shell +-e PROXY_URL="http://127.0.0.1:7890 user password" +``` + 如果你需要指定其他环境变量,请自行在上述命令中增加 `-e 环境变量=环境变量值` 来指定。 ### 本地部署