Allow ipv6 to use Redis with provider internal network

The idea is:

Recently, I started moving from using a public network to a private network (mainly for postgress) which is where I have most of the egress, but when I wanted to do the same for Redis I have found that won’t be possible as ioredis that’s in use by bull it assumes the connection to Redis will be done with ipv4, but my provider only allows ipv6 for private network

My use case:

Allow me to use private network on Redis and save costs by not sending data through the public network.

I think it would be beneficial to add this because:

Redis usage with n8n is pretty low, at least in my use case, but I’m sure there maybe other n8n instances with high-demand usage that would be beneficial to use a private network if they like.

Looks like Bull accepts ioredis redis options and one of them is family which allows you to set 4 or 6 depending on if it is ipv4 or ipv6.

I guess a quick solution for this would be to add a new config option to set if it is ipv6 :thinking:

That would be great. Do you think the quick solution could be available soon?


Hey @yukyo,

It is hard to say as we already have our main features and changes set for the rest of the year so it depends on how popular this becomes or if myself or another member of the engineering team gets some time to pick this up.