Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #437 from devglrd/master
Browse files Browse the repository at this point in the history
Add a Redis Sentinel Doc in README.md
  • Loading branch information
tlaverdure authored May 2, 2020
2 parents 19b0d13 + 04ff67e commit 820ddc8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,32 @@ For example, if you wanted to pass a custom configuration to Redis:

*A full list of Redis options can be found [here](https://github.com/luin/ioredis/blob/master/API.md#new-redisport-host-options).*

### Redis sentinel
For example, if you wanted to use redis-sentinel, you need to pass a custom configuration :

``` json
"databaseConfig": {
"redis": {
"sentinels": [
{
"host": "redis-sentinel-0",
"port": 26379
},
{
"host": "redis-sentinel-1",
"port": 26379
}
{
"host": "redis-sentinel-2",
"port": 26379
}
],
"name": "mymaster",
"sentinelPassword": "redis-password"
},
},
```
*For more information about redis sentinel configuration you can check [this](https://github.com/luin/ioredis#sentinel)*
### SQLite

With SQLite you may be interested in changing the path where the database is stored.
Expand Down

0 comments on commit 820ddc8

Please sign in to comment.