You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/connections.md
+19-14Lines changed: 19 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ Parameter "host", "port" and all "sentinel*" should not be set.
43
43
"host" and "port" are needed.
44
44
Do not set "path" or one of the "sentinel*" parameter as they have precedence
45
45
over "host" and "port"!
46
+
"host" can be either an IPv4 address, IPv6 address or a hostname.
46
47
47
48
```json
48
49
{
@@ -81,6 +82,9 @@ parsed as list of sentinels to connect:
81
82
3. array of strings
82
83
4. array of objects
83
84
85
+
Attention - connecting to a Redis server via IPv6 the form with a list of objects must be used (last example). All other variants do not work due to ":"
86
+
being part of the IPv6 address too.
87
+
84
88
```json
85
89
{
86
90
"connections": [
@@ -115,7 +119,8 @@ parsed as list of sentinels to connect:
115
119
"label": "redis-sentinel-4",
116
120
"sentinels": [
117
121
{ "host": "192.0.2.2", "port": 26379 },
118
-
{ "host": "192.0.2.3", "port": 26379 }
122
+
{ "host": "192.0.2.3", "port": 26379 },
123
+
{ "host": "fd00:2::3", "port": 26379 }
119
124
],
120
125
"sentinelName": "mymaster",
121
126
"password": "<optional-redis-server-pw>",
@@ -143,19 +148,19 @@ configure them directly inside your own custom json config file.
143
148
144
149
*The environment variables work for the docker image only, not for the stand-alone app!*
145
150
146
-
| Name | Type | Default | Cli | Environment-Var (Docker only) | Description |
147
-
|---|---|---|---|---|---|
148
-
| path | string | '' | --redis-socket | REDIS_SOCKET | path to the redis server socket, e.g. '/var/run/redis/redis.sock' |
149
-
| host | string | localhost | --redis-host | REDIS_HOST | hostname or ip address of redis server (standalone mode)|
150
-
| port | number | 6379 | --redis-port | REDIS_PORT | port number where redis server listens (standalone mode) |
151
-
| username | string | '' | --redis-username | REDIS_USERNAME | optional username of the redis server itself (socket, standalone, sentinel or cluster mode - supported since Redis 6.0) |
152
-
| password | string | '' | --redis-password | REDIS_PASSWORD | optional password of the redis server itself (socket, standalone, sentinel or cluster mode) |
153
-
| sentinels | string or list | '' | --sentinels | SENTINELS | string: comma separated list of sentinels with "host:port" (sentinel mode) or list of "host:port" strings |
154
-
| sentinelName | string | 'mymaster' | --sentinel-name | SENTINEL_NAME | name of redis database group to connect to via sentinel. The default name of 'mymaster' can be change via global redis configuration value 'redis.defaultSentinelGroup' (sentinel mode) |
155
-
| sentinelUsername | string || --sentinel-username | SENTINEL_USERNAME | optional username to connect to sentinels itself. This is not the username of the redis server (sentinel mode - supported since Redis 6.0) |
156
-
| sentinelPassword | string || --sentinel-password | SENTINEL_PASSWORD | password to connect to sentinels itself. This is not the password of the redis server (sentinel mode) |
157
-
| db | number | 0 | --redis-db | REDIS_DB | Number of database, starting with 0, max allowed db number is configured server-side (default 15) |
158
-
| connectionName | string | '' ||| use special connection name at this redis client to identify it with redis "CLIENT LIST" command. If not set default connection name from config param `redis.connectionName` is used |
151
+
| Name | Type | Default | Cli | Environment-Var (Docker only) | Description |
| path | string | '' | --redis-socket | REDIS_SOCKET | path to the redis server socket, e.g. '/var/run/redis/redis.sock' |
154
+
| host | string | localhost | --redis-host | REDIS_HOST | hostname or ipv4/ipv6 address of redis server (standalone mode)|
155
+
| port | number | 6379 | --redis-port | REDIS_PORT | port number where redis server listens (standalone mode) |
156
+
| username | string | '' | --redis-username | REDIS_USERNAME | optional username of the redis server itself (socket, standalone, sentinel or cluster mode - supported since Redis 6.0) |
157
+
| password | string | '' | --redis-password | REDIS_PASSWORD | optional password of the redis server itself (socket, standalone, sentinel or cluster mode) |
158
+
| sentinels | string or list | '' | --sentinels | SENTINELS | string: comma separated list of sentinels with "host:port" (sentinel mode) or list of "host:port" strings |
159
+
| sentinelName | string | 'mymaster' | --sentinel-name | SENTINEL_NAME | name of redis database group to connect to via sentinel. The default name of 'mymaster' can be change via global redis configuration value 'redis.defaultSentinelGroup' (sentinel mode) |
160
+
| sentinelUsername | string || --sentinel-username | SENTINEL_USERNAME | optional username to connect to sentinels itself. This is not the username of the redis server (sentinel mode - supported since Redis 6.0) |
161
+
| sentinelPassword | string || --sentinel-password | SENTINEL_PASSWORD | password to connect to sentinels itself. This is not the password of the redis server (sentinel mode) |
162
+
| db | number | 0 | --redis-db | REDIS_DB | Number of database, starting with 0, max allowed db number is configured server-side (default 15) |
163
+
| connectionName | string | '' ||| use special connection name at this redis client to identify it with redis "CLIENT LIST" command. If not set default connection name from config param `redis.connectionName` is used |
159
164
| tls | boolean or object | false | --redis-tls | REDIS_TLS | set to true to enable TLS secured connections to the redis server, for more specific configurations (allowed algorithms, server certificate checks and so on) this parameter can be an object directly use at Node tls sockets (https://github.com/luin/ioredis#tls-options)|
160
165
| label | string | '' | --redis-label || display label to us to identify this connection within the Web-UI |
161
166
| optional | boolean | false | --redis-optional | REDIS_OPTIONAL | set to true to not auto-reconnect on connection lost. Reconnect will be done if data are fetch from UI on user request |
0 commit comments