feat: Convert ts files to js files for config folder
This commit is contained in:
16
packages/backend/src/config/redis.js
Normal file
16
packages/backend/src/config/redis.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import appConfig from './app';
|
||||
|
||||
const redisConfig = {
|
||||
host: appConfig.redisHost,
|
||||
port: appConfig.redisPort,
|
||||
username: appConfig.redisUsername,
|
||||
password: appConfig.redisPassword,
|
||||
enableOfflineQueue: false,
|
||||
enableReadyCheck: true,
|
||||
};
|
||||
|
||||
if (appConfig.redisTls) {
|
||||
redisConfig.tls = {};
|
||||
}
|
||||
|
||||
export default redisConfig;
|
Reference in New Issue
Block a user