What is the format of the content of the REDIS__CONNECTION__ADDR environment variable? #304
|
Hi! I am using the It doesn't accept this: or this I don't know what else to do, some help would be appreciated |
Answered by
bikeshedder
Mar 5, 2024
Replies: 1 comment 1 reply
|
You can find the I just realized the example in the config documentation was wrong and is now fixed as of fa9c55c. The correct environment configuration is: The exploded {
"redis": {
"connection": {
"addr": {
"TcpTls": {
"host": "localhost",
"port": 6379,
"insecure": false
}
}
}
}
}I'm unsure how that |
1 reply
Answer selected by
JasterV
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can find the
Configstruct here: https://github.com/bikeshedder/deadpool/blob/master/redis/src/config.rs#L39I just realized the example in the config documentation was wrong and is now fixed as of fa9c55c.
The correct environment configuration is:
The exploded
ConnectionInfois a bit more tricky as it involves quite a lot of nesting and is a 1:1 mapping from the underlying structures. A JSON config would look like that:{ "redis": { "connection": { "addr": { "TcpTls": { "host": "localhost", "port": 6379, "insecure": false } …