From 22cada563bfdf0e3fe9b113c1ac865c68cc1b966 Mon Sep 17 00:00:00 2001 From: OG T Date: Tue, 24 Mar 2026 18:44:34 +0800 Subject: [PATCH] fix(config): Share Redis DB 0 with OpenClaw - Change REDIS_URL from DB 10 to DB 0 - AWOOOI and OpenClaw now share the same Redis database - Incidents created by OpenClaw visible in AWOOOI UI Co-Authored-By: Claude Opus 4.5 --- apps/api/src/core/config.py | 6 +++--- k8s/awoooi-prod/03-secrets.example.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/api/src/core/config.py b/apps/api/src/core/config.py index e7adf3666..e38c1d879 100644 --- a/apps/api/src/core/config.py +++ b/apps/api/src/core/config.py @@ -89,11 +89,11 @@ class Settings(BaseSettings): ) # ========================================================================== - # Redis (192.168.0.188:6380, DB 10-15 for AWOOOI) + # Redis (192.168.0.188:6380, DB 0 - 與 OpenClaw 共用) # ========================================================================== REDIS_URL: str = Field( - default="redis://192.168.0.188:6380/10", - description="Redis connection URL (DB 10-15 reserved for AWOOOI)", + default="redis://192.168.0.188:6380/0", + description="Redis connection URL (DB 0 shared with OpenClaw)", ) # ========================================================================== diff --git a/k8s/awoooi-prod/03-secrets.example.yaml b/k8s/awoooi-prod/03-secrets.example.yaml index e6a0ea852..c25df2071 100644 --- a/k8s/awoooi-prod/03-secrets.example.yaml +++ b/k8s/awoooi-prod/03-secrets.example.yaml @@ -23,9 +23,9 @@ stringData: DATABASE_URL: "postgresql+asyncpg://awoooi:CHANGE_ME@192.168.0.188:5432/awoooi_prod" # ============================================================================ - # Redis (192.168.0.188:6380, DB 10-15 for AWOOOI) + # Redis (192.168.0.188:6380, DB 0 - 與 OpenClaw 共用) # ============================================================================ - REDIS_URL: "redis://192.168.0.188:6380/10" + REDIS_URL: "redis://192.168.0.188:6380/0" # ============================================================================ # AI 服務 API Keys (ADR-006 備援順序: Ollama → Gemini → Claude)