fix(newapi): 切换 Redis 连接为无密码模式

This commit is contained in:
cnphpbb
2026-09-02 23:05:54 +08:00
parent f0475ecf36
commit e550b5b2f1
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -43,6 +43,7 @@ DB_USER=newapi
DB_PASSWORD=<your-strong-password>
# ---------- Redis(容器内 Redis----------
REDIS_HOST=redis
REDIS_PASSWORD=<your-strong-password>
# ---------- new-api 应用 ----------
+2 -1
View File
@@ -29,7 +29,8 @@ services:
# - SQL_DSN=postgresql://${DB_USER:-newapi}:${DB_PASSWORD}@${DB_HOST:-postgres}:${DB_PORT:-5432}/${DB_NAME:-new_api}?sslmode=disable
- SQL_DSN=postgresql://${DB_USER:-newapi}:${DB_PASSWORD}@${DB_HOST:-postgres}:${DB_PORT:-5432}/${DB_NAME:-new_api}
# 默认值:REDIS_HOST=172.22.10.205 指向 Dev-RedisdbSer/redis.yml部署,DevNet 网段固定 IP
- REDIS_CONN_STRING=redis://:${REDIS_PASSWORD}@${REDIS_HOST:-172.22.10.205}:${REDIS_PORT:-6379}
# - REDIS_CONN_STRING=redis://:${REDIS_PASSWORD}@${REDIS_HOST:-172.22.10.205}:${REDIS_PORT:-6379}
- REDIS_CONN_STRING=redis://${REDIS_HOST:-172.22.10.205}:${REDIS_PORT:-6379}
- TZ=Asia/Shanghai
- BATCH_UPDATE_ENABLED=true
- ERROR_LOG_ENABLED=true