NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Feature] 应该有个默认配置文件的json环境变量

Open Mxucc opened this issue 2 years ago • 5 comments

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

点击加入官方群聊

这个功能与现有的问题有关吗? 环境变量问题,默认模式配置问题

你想要什么功能或者有什么建议? 在环境变量中写入配置文件的url或者文件内容,文件由调好的本地数据导出,作为程序启动后读取作为默认的本地配置

有没有可以参考的同类竞品? 可以给出参考产品的链接或者截图。 image 在环境变量调用这个保存好的配置作为初始配置

其他信息 可以说说你的其他考虑。

Mxucc avatar Dec 29 '23 04:12 Mxucc

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


Title: [Feature] The json environment variable that should be the default configuration file

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

**Is this feature related to an existing issue? ** Environment variable issues, default mode configuration issues

**What features do you want or have any suggestions? ** Write the URL or file content of the configuration file in the environment variable. The file is exported from the adjusted local data and is read as the default local configuration after the program is started.

**Are there any similar competing products that we can refer to? ** Links or screenshots of reference products can be given. image Call this saved configuration in the environment variable as the initial configuration

other information Can you tell me about your other considerations.

Issues-translate-bot avatar Dec 29 '23 04:12 Issues-translate-bot

同时也能满足这个 https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/3676

Mxucc avatar Dec 29 '23 04:12 Mxucc

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


It can also satisfy this https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/3676

Issues-translate-bot avatar Dec 29 '23 04:12 Issues-translate-bot

可以自己创建一个.env保存环境变量

docker-compose up --env-file .env

也可以在docker-compose.yml文件中使用env_file选项来指定.env文件的路径。例如:

version: '3.7'

services:
  web:
    image: nginx:latest
    ports:
      - "80:80"
    env_file:
      - .env

MapleMoonSky avatar Dec 30 '23 07:12 MapleMoonSky

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


You can create a .env yourself to save environment variables

docker-compose up --env-file .env

You can also use the env_file option in the docker-compose.yml file to specify the path to the .env file. For example:

version: '3.7'

services:
  web:
    image: nginx:latest
    ports:
      - "80:80"
    env_file:
      - .env

Issues-translate-bot avatar Dec 30 '23 07:12 Issues-translate-bot