-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
add support for username for redis as cache in tegola config #1010
Comments
I can take a look tomorrow. I’m however surprised to read this. Pretty sure we use it with credentials too. |
do you have example with that or where credentials used. |
You can use the uri like you did. Make sure your password does not contain a colon though. If this does not work correctly I can take a look. |
I tried different combinations of parsedURL, and in all of them tegola container threw the exception |
@ibrahimjel here's what seems like a related issue in the driver: redis/go-redis#2870 Try removing |
As far as I can see we do not support the uri after all. Probably something we should do similar to the change we did to Postgres a while back? @ARolek |
Ah yes, so that's the issue. I should have dug deeper. I agree we should deprecate the old config properties in favor of the connection string. Thanks for the quick turn around on the PR. I just left you a review! |
closes: go-spatial#1010 chore: resolve review comments
closes: #1010 chore: resolve review comments
@ibrahimjel the one and only @iwpnd implemented connection string handling for redis! You can grab a binary to test it out via the GH Action: https://github.com/go-spatial/tegola/actions/runs/11917492487. Config documentation has also been updated: https://github.com/go-spatial/tegola/tree/master/cache/redis Please report back how this works for you. |
@rolek @iwpnd Thanks for your work. I just tested the uri in my tegola config.toml # Use Redis for caching
[cache]
type = "redis"
uri = "redis://${REDIS_USER_TEGOLA}:${REDIS_PASSWORD_TEGOLA}@${REDIS_HOST}:${REDIS_PORT}/${REDIS_DB_TEGOLA"
ttl = 43200 and I go this error:
I have multiple redis users in my redis ACL. I believe tegola assume the default user here, which I disabled it in my ACL. can you please add option for |
|
Hi,
I am using tegola with redis as cache type. my redis DB has username and password to authenticate with. when put in address like this URL
redis://<username>:<password>@redis:6379
, tegola throw exceptionwould be great to introduce new field
username
in redis.go.The text was updated successfully, but these errors were encountered: