mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
remotecache: support SSL with redis (#18511)
* update go-redis lib from v2 -> v5 * add ssl option to the redis connection string fixes #18498
This commit is contained in:
@@ -281,9 +281,24 @@ Either `redis`, `memcached` or `database` default is `database`
|
||||
|
||||
### connstr
|
||||
|
||||
The remote cache connection string. Leave empty when using `database` since it will use the primary database.
|
||||
Redis example config: `addr=127.0.0.1:6379,pool_size=100,db=grafana`
|
||||
Memcache example: `127.0.0.1:11211`
|
||||
The remote cache connection string. The format depends on the `type` of the remote cache.
|
||||
|
||||
#### Database
|
||||
|
||||
Leave empty when using `database` since it will use the primary database.
|
||||
|
||||
#### Redis
|
||||
|
||||
Example connstr: `addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false`
|
||||
|
||||
- `addr` is the host `:` port of the redis server.
|
||||
- `pool_size` (optional) is the number of underlying connections that can be made to redis.
|
||||
- `db` (optional) is the number indentifer of the redis database you want to use.
|
||||
- `ssl` (optional) is if SSL should be used to connect to redis server. The value may be `true`, `false`, or `insecure`. Setting the value to `insecure` skips verification of the certificate chain and hostname when making the connection.
|
||||
|
||||
#### Memcache
|
||||
|
||||
Example connstr: `127.0.0.1:11211`
|
||||
|
||||
<hr />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user