feat: Convert ts files to js files for config folder

This commit is contained in:
Faruk AYDIN
2023-12-28 13:09:24 +01:00
parent fd0b12f6a1
commit ca7b8b865a
5 changed files with 4 additions and 65 deletions

View 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;