-
RocksDB not working?
config used: https://gist.github.com/11notes/6e63a2aab0d65f541f53826769433981 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
The store = { path = "main/crates/store", features = ["redis", "postgres", "mysql", "sqlite", "rocksdb"] } Or you can use the |
Beta Was this translation helpful? Give feedback.
-
Okay, I use postgres now, that works, I don't know why rocksdb does not work, but for my use case it doesn't matter, what matters is Redis, and that also doesn't work: LOG 2024-02-17T01:04:21.609143Z WARN smtp::core::eval: Failed to get key. context="eval_if" event="error" property="session.rcpt.relay" error=InternalError("Redis error: NOAUTH: Authentication required.") REDIS acl setuser stalwart on >stalwart allkeys +@all redis.toml [store."redis"]
type = "redis"
url = "redis://localhost"
username = "stalwart"
password = "stalwart"
timeout = "10s"
retries = 3
max-retry-wait = "1s"
min-retry-wait = "500ms" I would also like to use rediss (TLS) but if I do that with a self signed certificate there is no configuration flag to disable SSL verification for Redis. Any ideas? It would exactly be better if you could utilize the full redis URl with username, password, DB selector, and so on, like described here: https://github.com/lettuce-io/lettuce-core/wiki/Redis-URI-and-connection-details |
Beta Was this translation helpful? Give feedback.
The Redis library that Stalwart uses is configured differently depending on whether you're using Redis or Redis cluster. I'll have this better documented, but Redis is configured entirely from the URL using the following syntax:
redis://[<username>][:<password>@]<hostname>[:port][/<db>]
And to use
rediss
with a self-signed certificate:rediss://[<username>][:<password>@]<hostname>[:port][/<db>]#insecure
Edit: The Redis documentation has been updated.