diff --git a/backend/example.env b/backend/example.env index 6437ba86..d15953a9 100644 --- a/backend/example.env +++ b/backend/example.env @@ -21,7 +21,6 @@ JWT_REFRESH_TOKEN_EXPIRES_IN=7d # Redis REDIS_HOST=cache REDIS_PORT=6379 -REDIS_USERNAME=redis REDIS_PASSWORD=password # AWS SES diff --git a/backend/src/redis/client/redis-client.ts b/backend/src/redis/client/redis-client.ts index 1d08a87d..f11a65a3 100644 --- a/backend/src/redis/client/redis-client.ts +++ b/backend/src/redis/client/redis-client.ts @@ -9,7 +9,6 @@ export const redisClientFactory: FactoryProvider = { const redisInstance = new Redis({ host: configService.getOrThrow('REDIS_HOST'), port: configService.getOrThrow('REDIS_PORT'), - username: configService.getOrThrow('REDIS_USERNAME'), password: configService.getOrThrow('REDIS_PASSWORD'), }); diff --git a/docker-compose.yaml b/docker-compose.yaml index f0d46cfe..1868441a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -76,12 +76,8 @@ services: container_name: cache restart: always environment: - - REDIS_USERNAME=${REDIS_USERNAME} - - REDIS_PASSWORD=${REDIS_PASSWORD} - command: > - redis-server --requirepass ${REDIS_PASSWORD} - --user ${REDIS_USERNAME} on >${REDIS_PASSWORD} ~* +@all - --user default off + - REDIS_PASSWORD=your-redis-password + command: redis-server --requirepass ${REDIS_PASSWORD} ports: - "6379:6379" volumes: diff --git a/example.env b/example.env index 9ad9e784..dfbd622f 100644 --- a/example.env +++ b/example.env @@ -1,2 +1 @@ -REDIS_USERNAME=redis REDIS_PASSWORD=password \ No newline at end of file diff --git a/ipfs-service/example.env b/ipfs-service/example.env index 5f855877..8da0740b 100644 --- a/ipfs-service/example.env +++ b/ipfs-service/example.env @@ -10,7 +10,6 @@ IPNS_CONSTITUTION_KEY_NAME='some-key-name' # Redis REDIS_HOST=localhost REDIS_PORT=6379 -REDIS_USERNAME=redis REDIS_PASSWORD=password ## DHT QUEUE ## diff --git a/ipfs-service/src/bullmq/bullmq.module.ts b/ipfs-service/src/bullmq/bullmq.module.ts index 9f661e19..8dd4d1fd 100644 --- a/ipfs-service/src/bullmq/bullmq.module.ts +++ b/ipfs-service/src/bullmq/bullmq.module.ts @@ -13,7 +13,6 @@ import { ExpressAdapter } from "@bull-board/express"; connection: { host: configService.getOrThrow("REDIS_HOST"), port: configService.getOrThrow("REDIS_PORT"), - username: configService.getOrThrow("REDIS_USERNAME"), password: configService.getOrThrow("REDIS_PASSWORD"), }, }), diff --git a/worker-service/example.env b/worker-service/example.env index cfc77466..f15d8584 100644 --- a/worker-service/example.env +++ b/worker-service/example.env @@ -16,7 +16,6 @@ DB_SYNC_POSTGRES_PASSWORD=password # Redis REDIS_HOST=cache REDIS_PORT=6379 -REDIS_USERNAME=redis REDIS_PASSWORD=password # PAGINATION diff --git a/worker-service/src/bullmq/bullmq.module.ts b/worker-service/src/bullmq/bullmq.module.ts index b3075bfa..0b0cbb58 100644 --- a/worker-service/src/bullmq/bullmq.module.ts +++ b/worker-service/src/bullmq/bullmq.module.ts @@ -16,7 +16,6 @@ import { ExpressAdapter } from '@bull-board/express'; connection: { host: configService.getOrThrow('REDIS_HOST'), port: configService.getOrThrow('REDIS_PORT'), - username: configService.getOrThrow('REDIS_USERNAME'), password: configService.getOrThrow('REDIS_PASSWORD'), }, }),