ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
75.74k stars 58.87k forks source link

[Bug] dcoker部署 添加的环境变量没有生效 #2987

Closed cloud-nine-GitHub closed 1 year ago

cloud-nine-GitHub commented 1 year ago

为了提高交流效率,我们设立了官方 QQ 群和 QQ 频道,如果你在使用或者搭建过程中遇到了任何问题,请先第一时间加群或者频道咨询解决,除非是可以稳定复现的 Bug 或者较为有创意的功能建议,否则请不要随意往 Issue 区发送低质无意义帖子。

点击加入官方群聊

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

描述问题 使用dcoker部署 添加的环境变量 并没有替换配置

截图 企业微信截图_16969336047569

image

如何复现 docker镜像 yidadaa/chatgpt-next-web latest d6e716d6b8ba 6 hours ago 244MB 容器命令 docker run -d -p 8400:3000 --name chatgptWeb -e OPENAI_API_KEY="sk-X2GW**n3jPh1dfy9G" -e BASE_URL="https://chatgpt.xxxxxxxx.cn/api/openai" yidadaa/chatgpt-next-web

一些必要的信息

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] The environment variables added by dcoker deployment did not take effect

In order to improve communication efficiency, we have set up an official QQ group and QQ channel. If you encounter any problems during use or construction, please join the group or channel for consultation as soon as possible, unless it is a bug that can be stably reproduced or More creative feature suggestions, otherwise please do not send low-quality and meaningless posts to the Issue area.

Click to join the official group chat

Feedback Instructions

⚠️ NOTE: Any post that does not follow this template will be immediately closed and we will not be able to 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.

Describe the problem Using dcoker to deploy the added environment variables does not replace the configuration

screenshot Enterprise WeChat screenshot_16969336047569

image

How ​​to reproduce docker image yidadaa/chatgpt-next-web latest d6e716d6b8ba 6 hours ago 244MB Container commands docker run -d -p 8400:3000 --name chatgptWeb -e OPENAI_API_KEY="sk-X2GW**n3jPh1dfy9G" - e BASE_URL="https://chatgpt.xxxxxxxx.cn/api/openai" yidadaa/chatgpt-next-web

Some necessary information

Yidadaa commented 1 year ago

env 中的配置和前端设置页的配置显然是分离的,难不成你想让你的用户直接看到你的 sk?

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically.


The configuration in env and the configuration on the front-end settings page are obviously separated. Is it possible that you want your users to see your sk directly?

cloud-nine-GitHub commented 1 year ago

env 中的配置和前端设置页的配置显然是分离的,难不成你想让你的用户直接看到你的 sk?

那个接口地址呢,也不能修改默认值吗

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically.


The configuration in env and the configuration on the front-end settings page are obviously separated. Is it possible that you want your users to see your sk directly?

What about the interface address? Can’t I change the default value?

Issues-translate-bot commented 11 months ago

Bot detected the issue body's language is not English, translate it automatically.


I also encountered this problem. After setting the interface address in the environment variable, the front end cannot be used directly. It is still the default OpenAI address. .