Unfortunately, I am getting connection timeout on Wappler after setting https://IP:port OR redis://IP:port from my web-exposed Caprover Redis app.
My target on Wappler is a simple local server (not the Wappler one).
Maybe I need to set the password somewhere, but can’t figure out where. Or will it not work on localhost, only when deployed?
Not sure how Caprover works - but if Redis is also deployed with docker, you need to supply as redis connection, the docker internal service name for redis and not the external IP address
But that will not work in localhost.
The make it work in localhost, it would have to be something like: redis://:password@192.x.x.x:port
I don't know what the username should be either.
Yes it would, but as you asked specifically for redis on localhost. When Wappler creates a redis instance via docker on your local machine it binds the redis as the name of the machine.
That's is why by default the connection string is redis://redis
Ok. Sort of making sense.
So why isn’t the local machine able to connect to the remote Caprover Redis instance?
Tried the connection string Patrick suggested, but I don’t know username, just the password.
The connection string that @patrick gave you will only work for apps that belong to the same docker swarm. This is the one created by caprover. Any app created in your caprover instance can connect to each other using the internal hostname.
If you want to connect to that same redis instance from outside(your computer here) you need to map a port.