🧠Redis Configuration
If you choose to use the Redis driver for horizontal scalability, rate-limiting data storage, or queue support, you will need to configure additional environment variables to instruct soketi on how to connect to Redis.
If you are not using Redis for rate limiting or queues, these environment variables are not required.
Environment Variables
Name | Default | Possible values | Description |
---|---|---|---|
|
| Any string | The Redis host. |
|
| Any integer | The Redis port. |
|
| Any integer | The Redis database. |
|
| Any string | The Redis username. |
|
| Any string | The Redis password. |
|
| Any string | The Redis key prefix that should be utilized. |
Redis Sentinel
The following additional options are available when connecting to Redis through one or more Sentinels.
Please be aware that utilizing the Sentinel options will override some of the other options like SOKETI_DB_REDIS_HOST
and SOKETI_DB_REDIS_PORT
, but not SOKETI_DB_REDIS_DB
or SOKETI_DB_REDIS_PASSWORD
. More details can be found in the ioredis
documentation for Redis Sentinel.
Name | Default | Possible values | Description |
---|---|---|---|
|
| Any string | A JSON-encoded array of objects with |
|
| Any string | The (optional) password that is used to authenticate with the Sentinels. |
|
| Any string | The name of the Redis instance to which a connection should be established through the configured Sentinels. |
Redis Cluster
The following additional options are available when connecting to Redis Cluster configurations.
Please be aware that utilizing the Cluster options will override some of the other options like SOKETI_DB_REDIS_HOST
and SOKETI_DB_REDIS_PORT
, but not SOKETI_DB_REDIS_DB
or SOKETI_DB_REDIS_PASSWORD
. More details can be found in the ioredis
documentation for Redis Cluster.
Name | Default | Possible values | Description |
---|---|---|---|
|
| Any string | A JSON-encoded array of objects with |
Last updated