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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
You can find the
Config
struct 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
ConnectionInfo
is 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: