From be119f3b6465d72ecc6ed42f5564c56c91725161 Mon Sep 17 00:00:00 2001 From: Wizerd Date: Wed, 10 Jan 2024 15:46:06 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E8=B0=83=E6=95=B4=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=9A=84redis=E9=93=BE=E6=8E=A5=E4=B8=BAredis=E5=AE=B9?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/config.json | 2 +- main.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/config.json b/data/config.json index 3a10acb..df8ef7f 100644 --- a/data/config.json +++ b/data/config.json @@ -25,7 +25,7 @@ "enabled_plugin_output": "false" }, "redis": { - "host": "localhost", + "host": "redis", "port": 6379, "password": "", "db": 0, diff --git a/main.py b/main.py index 87a02b8..1101e13 100644 --- a/main.py +++ b/main.py @@ -69,7 +69,7 @@ DALLE_PROMPT_PREFIX = CONFIG.get('dalle_prompt_prefix', '') # redis配置读取 REDIS_CONFIG = CONFIG.get('redis', {}) -REDIS_CONFIG_HOST = REDIS_CONFIG.get('host', 'localhost') +REDIS_CONFIG_HOST = REDIS_CONFIG.get('host', 'redis') REDIS_CONFIG_PORT = REDIS_CONFIG.get('port', 6379) REDIS_CONFIG_PASSWORD = REDIS_CONFIG.get('password', '') REDIS_CONFIG_DB = REDIS_CONFIG.get('db', 0) @@ -197,9 +197,9 @@ CORS(app, resources={r"/images/*": {"origins": "*"}}) PANDORA_UPLOAD_URL = 'files.pandoranext.com' -VERSION = '0.4.9' +VERSION = '0.4.10' # VERSION = 'test' -UPDATE_INFO = '尝试解决未知错误引起的会话中断导致对话记录删除失败的问题' +UPDATE_INFO = '支持自定义Redis配置' # UPDATE_INFO = '【仅供临时测试使用】 ' with app.app_context():