How to use Etherpad Lite with Redis - ether/etherpad-lite GitHub Wiki
How to use Etherpad Lite with Redis
- Install redis on your server, make sure it stores data persistent.
- Edit settings.json in your Etherpad Lite root folder and change the database settings.
"dbType" : "redis",
"dbSettings" : {
"host" : "localhost",
"port" : 6379, // Adjust port if you have multiple instances of redis.
"database" : 0, // You should choose a database id that is not already used.
// If you run redis only for etherpad you can leave this as 0.
"client_options": {
"password": "<very secure redis password>"
}
}
- Run etherpad lite
Troubleshooting
-
If you get
Error: Cannot find module 'redis'you need to runnpm install redisornpm install hiredis redisin the directorysrc. -
If you get
Error: Callback was already called, you may find help with this issue or by configuring the database with this format:
"dbType": "${DB_TYPE:redis}",
"dbSettings": {
"port": "${DB_PORT:redis://:PASSWORD@HOST:PORT}"
}