Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS configuration for “Redis Cache” #6975

Closed
karthikj511 opened this issue May 15, 2024 · 1 comment
Closed

TLS configuration for “Redis Cache” #6975

karthikj511 opened this issue May 15, 2024 · 1 comment

Comments

@karthikj511
Copy link

karthikj511 commented May 15, 2024

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
Copy link
Author

I was able to resolve this by changing content in the .meshrc.yaml

cache:
redis:
url: 'rediss://:password@host:port'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant