关于代理的问题
为了提高交流效率,我们设立了官方 QQ 群和 QQ 频道,如果你在使用或者搭建过程中遇到了任何问题,请先第一时间加群或者频道咨询解决,除非是可以稳定复现的 Bug 或者较为有创意的功能建议,否则请不要随意往 Issue 区发送低质无意义帖子。
反馈须知
⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。
请在下方中括号内输入 x 来表示你已经知晓相关内容。
- [ ] 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
- [ ] 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
- [ ] 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。
描述问题
我在centos系统中启动了项目,访问提示如下:
我的启动命令如下: docker run -d --name chatgpt-next-web -p 3000:3000 -e OPENAI_API_KEY="sk-X********GOc3zMail2UBeb6W1qw" -e CODE="666666" -e PROXY_URL="http://127.0.0.1:7890" -e HOSTNAME=127.0.0.1 yidadaa/chatgpt-next-web
我的代理开启截图如下:
请问如何解决,请大佬支招
Bot detected the issue body's language is not English, translate it automatically.
Title: About proxy
In order to improve communication efficiency, we have set up official QQ groups and QQ channels. If you encounter any problems during use or construction, please join the group or channel for consultation and solve them as soon as possible, unless it is a bug that can be reproduced stably or More creative feature suggestions, otherwise please do not send low-quality meaningless posts to the Issue area.
Feedback Notice
⚠️ NOTE: Any post that does not follow this template will be closed immediately, and we cannot locate your issue without providing the information below.
Please enter x in the square brackets below to indicate that you already know the relevant content.
- [ ] I confirm that I have searched for this feedback issue in FAQ, and there is no find the answer;
- [ ] I confirm that I have searched the Issues list (including those that have been closed) for this feedback issue, but have not found an answer.
- [ ] I confirm that I have searched for this feedback issue in Vercel Tutorial, No answer found.
Describe problem
I started the project in the centos system, and the access prompt is as follows:
My startup command is as follows: docker run -d --name chatgpt-next-web -p 3000:3000 -e OPENAI_API_KEY="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" -e CODE="666666" -e PROXY_URL="http://127.0.0.1:7 890"-e HOSTNAME=127.0.0.1 yidadaa/chatgpt-next-web
The screenshot of my proxy opening is as follows:
How to solve it, please help me
你截图里面显示,你的代理端口是 7891,而不是 7890。
Bot detected the issue body's language is not English, translate it automatically.
Your screenshot shows that your proxy port is 7891, not 7890.
In order to improve communication efficiency, we have set up official QQ groups and QQ channels. If you encounter any problems during use or construction, please join the group or channel for consultation and solve them as soon as possible, unless it is a bug that can be reproduced stably or More creative feature suggestions, otherwise please do not send low-quality meaningless posts to the Issue area.
7890和7891都试过了,结果是一样的
Bot detected the issue body's language is not English, translate it automatically.
Your screenshot shows that your proxy port is 7891, not 7890.
i tryed 7890 and 7891 ,the result is same
你截图里面显示,你的代理端口是 7891,而不是 7890。
2个都试过了,结果是一样的。
Bot detected the issue body's language is not English, translate it automatically.
Your screenshot shows that your proxy port is 7891, not 7890.
Tried both, same result.
PROXY_URL有人测试过对docker bridge网络生效吗?按道理是不可以的。
两种可能的方案:
- 容器使用host网络,加
--network host,但我觉得可能不行 - 使用官方推荐的方法,配置docker client proxy,该方案不支持过于陈旧的docker版本
Bot detected the issue body's language is not English, translate it automatically.
Has anyone tested PROXY_URL to take effect on the docker bridge network? Logically, it is impossible.
Two possible scenarios:
- The container uses the host network, add
--network host, but I think it may not work - Use the officially recommended method to configure docker client proxy, this solution does not support too old docker version
Add the--network=hostparameter to use the host network.
Otherwise, the container and the host are not on the same network, and the proxy service in the host cannot be found using 127.0.0.1.
like this:
docker run -d --network=host -p 3000:3000 \
-e OPENAI_API_KEY=xxx \
-e CODE=xxx \
-e GOOGLE_API_KEY=xxx \
-e PROXY_URL=http://127.0.0.1:7890 \
yidadaa/chatgpt-next-web