From 3178b3427ccd9fd0027b8692ca3d20311352f463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8B=82=E9=87=8E=E4=B9=8B=E9=A9=B4?= <1139168548@qq.com> Date: Tue, 20 Aug 2024 00:09:03 +0800 Subject: [PATCH] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 440565b..92406ad 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,9 @@ kubectl apply -f deploy/k8s/deploy.yaml ``` ## 配置文件 -* **admin_password**:后台管理登录密码,**必须设置**。 +* **admin_password**:后台管理登录密码,**没有默认值,必须设置**。环境变量为:`ADMIN_PASSWORD` * 有关Pandora.domain下的设置, 如果你反代了`new.oaifree.com`则需要修改为你反代后的域名。 -* **title**:前台登录页的标题。 +* 所有配置项均可通过环境变量来设置,比如`http.host`可以写作`HTTP_HOST` ```json { "security": { @@ -80,6 +80,10 @@ kubectl apply -f deploy/k8s/deploy.yaml "driver": "sqlite", "dsn": "./data/data.db" }, + "share": { + "random": true, + "custom": true + }, "pandora": { "domain": { "chat": "https://chat.oaifree.com", @@ -90,6 +94,7 @@ kubectl apply -f deploy/k8s/deploy.yaml }, "log": { "level": "info", + "encoding": "console", "output": "console", "log_file_name": "./logs/server.log", "max_backups": 30,