diff --git a/.env.schema b/.env.schema index 8f55cbd..c1cbfe6 100644 --- a/.env.schema +++ b/.env.schema @@ -1 +1,2 @@ -PORT= \ No newline at end of file +API_PORT= +REDIS_URL= diff --git a/src/redis.ts b/src/redis.ts index a9cab7b..1f15cdd 100644 --- a/src/redis.ts +++ b/src/redis.ts @@ -1,7 +1,12 @@ import Redis from "ioredis"; export const redis = new Redis( - "redis://default:SecurePassword@10.77.1.114:6379" + process.env.REDIS_URL ?? "redis://default:SecurePassword@localhost:6379", + { + tls: { + rejectUnauthorized: false, + }, + } ); export function connectRedis() {