|
24 | 24 | * - UNTHREAD_API_KEY: API key for Unthread integration
|
25 | 25 | * - UNTHREAD_SLACK_CHANNEL_ID: Slack channel ID for ticket routing
|
26 | 26 | * - UNTHREAD_WEBHOOK_SECRET: Secret for webhook signature verification
|
27 |
| - * - REDIS_URL: Redis connection URL for caching and data persistence (required) |
| 27 | + * - DATABASE_URL: PostgreSQL connection URL for L3 persistent storage (required) |
| 28 | + * - PLATFORM_REDIS_URL: Redis connection URL for L2 cache layer (required) |
| 29 | + * - WEBHOOK_REDIS_URL: Redis connection URL for webhook queue processing (required) |
28 | 30 | * - FORUM_CHANNEL_IDS: Comma-separated list of forum channel IDs for automatic ticket creation (optional)
|
29 | 31 | * - DEBUG_MODE: Enable verbose logging during development (optional, defaults to false)
|
30 | 32 | * - PORT: Port for webhook server (optional, defaults to 3000)
|
@@ -155,9 +157,10 @@ async function main(): Promise<void> {
|
155 | 157 | 'UNTHREAD_SLACK_CHANNEL_ID',
|
156 | 158 | 'UNTHREAD_WEBHOOK_SECRET',
|
157 | 159 | 'DATABASE_URL',
|
158 |
| - 'REDIS_CACHE_URL', |
| 160 | + 'PLATFORM_REDIS_URL', |
| 161 | + 'WEBHOOK_REDIS_URL', |
159 | 162 | ];
|
160 |
| - const { DISCORD_BOT_TOKEN, DATABASE_URL, REDIS_CACHE_URL } = process.env as Partial<BotConfig>; |
| 163 | + const { DISCORD_BOT_TOKEN, DATABASE_URL, PLATFORM_REDIS_URL } = process.env as Partial<BotConfig>; |
161 | 164 |
|
162 | 165 | const missingVars: string[] = [];
|
163 | 166 |
|
@@ -190,8 +193,8 @@ async function main(): Promise<void> {
|
190 | 193 | process.exit(1);
|
191 | 194 | }
|
192 | 195 |
|
193 |
| - if (!REDIS_CACHE_URL) { |
194 |
| - LogEngine.error('REDIS_CACHE_URL is required for L2 cache layer'); |
| 196 | + if (!PLATFORM_REDIS_URL) { |
| 197 | + LogEngine.error('PLATFORM_REDIS_URL is required for L2 cache layer'); |
195 | 198 | LogEngine.error('Please provide a valid Redis connection URL (e.g., redis://localhost:6379)');
|
196 | 199 | process.exit(1);
|
197 | 200 | }
|
|
0 commit comments