strapi-middleware-cache icon indicating copy to clipboard operation
strapi-middleware-cache copied to clipboard

Override 127.0.0.1 host

Open valentin-harrang opened this issue 4 years ago • 1 comments

Hi,

Is it possible to override the hostname of the strapi-middleware-cache plugin? I am using Redis container in my docker-compose.yml and by default Strapi calls host 127.0.0.1 instead of my container name. I would like replace 127.0.0.1 by redis

Because I get this error:

error [cache] redis connection failed {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":6379}

I tried to add REDIS_HOST env variable but same problem

valentin-harrang avatar Oct 26 '21 10:10 valentin-harrang

Hi @valentin-harrang, could you share your config ?

patrixr avatar Oct 27 '21 00:10 patrixr