graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

TLS configuration for “Redis Cache”

Open karthikj511 opened this issue 1 month ago • 0 comments

Hi ,I am trying to integrate Redis cache for an application i am working on and currently facing an issue with TLS configuration.(With express & ioredis i am able to connect to the redis server)

Below is the cache block in .meshrc.yaml file.

cache: redis: host: 'server' port: 5590 password: 'password' tls: rejectUnauthorized: false

ioredis:redis status[server:5590]: connecting -> connect +277ms ioredis:redis write command[server:5590]: 0 -> auth([ 'password' ]) ioredis:redis write command[sever:5590]: 0 -> info([]) +1ms ioredis:connection error: Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -4077, code: 'ECONNRESET', syscall: 'read' } +1s [ioredis] Unhandled error event: Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20)

Looks like the tls is not being recognized, is there anything wrong with the above config?

karthikj511 avatar May 15 '24 06:05 karthikj511