-
Notifications
You must be signed in to change notification settings - Fork 31
Unable to connect via TLS to DigitalOcean Managed Redis #15
Comments
hey @lylo im actually in the same exact state at the moment, I thought it was me. have you got anywhere with this since posting? |
Not yet, I only posted this today. I'm at a bit of a dead end tbh. I've tried looking at the code for this module but it's unclear to me how caddy-tlsredis/storageredis.go Line 358 in d368f4b
|
what are you seeing in syslog, im running in k8s so debug is not great for me. Unfortunately I have just seen it might be related to the redis client in use |
My syslog is in the bug report but I'll post here again for good measure:
|
hey sorry how did i miss that lol, im just running a quick test with go-redis to see if i can connect locally (without caddy etc) |
ok resolved it, for some reason it doesn't take notice of the config in the CaddyFile, it works if you set the values via env's Give it a go and let me known. |
@robgordon89 this doesn't seem to work for me. I have defined the following in
I then restarted Caddy and I'm still saying the same error in the syslog. Are you able to share a redacted Caddyfile and environment variables? Also are you on Caddy 2.2.0? |
Not sure what your running on but is your environment file sourced ? Im running on kubernetes and everything seems to be fine with envs it appears the config parser here is not picking up the tls options from the caddyfile I have pretty much the same as you in envs, I also made the caddyfile read from the same envs just incase. I'll pull out my conf for you in about 20/30 mins |
Hey I am using k8s but please find details below, also check your firewall on your redis cluster. here is the storage part of my config this is there just for me to keep ref.
my envs are the same as yours currently, just one addition I am on 2.2.0 and caddy-tlsredis v0.2.2 |
Thank you @robgordon89. I have it working now. Turns out that starting Caddy fails when I run it via |
So I think this issue stands in that hard-coding the host, port etc in the Caddy file doesn't appear to work whereas referencing the environment variables does. |
Thanks for noticing, it seems the environment value are overwriting or i misinterpreted the lifecycle. The value is actually not hardcoded, but i set default value in case nothing is set in config or environment. If you look at I push some fix that might be the issue on branch Busy at the moment. I check it again in next week. Sorry. |
hey, I think this is the same thing happening in issue #13 I'll try the fix now. |
Your fix didn't seem to work, but I think this PR does #16 |
Seems a lot cleaner also I will try and give this a try later today. |
okay, big thanks @regbo |
I am experiencing issues connecting to a DigitalOcean Managed Redis instance and I wondered if someone might be able to help?
I can successfully connect from my server using
redli
:However when I configure my Caddy instance with the Redis module as follows I am seeing an error in the syslog:
The error I am seeing is:
Is anyone able to help me towards finding a solution at all? Many thanks.
The text was updated successfully, but these errors were encountered: