EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
redis.js
Go to the documentation of this file.
1// Shared Redis configuration for all services
2// Use this config object instead of REDIS_URL to ensure proper ACL authentication
3
4const redisConfig = {
5 host: process.env.REDIS_HOST || '127.0.0.1',
6 port: parseInt(process.env.REDIS_PORT) || 6379,
7 username: process.env.REDIS_USERNAME || undefined,
8 password: process.env.REDIS_PASSWORD || undefined,
9 db: parseInt(process.env.REDIS_DB) || 0,
10};
11
12module.exports = redisConfig;