use primarily REDIS_URL env variable for config.redis_url - keep REDIS_HOST here for backwards compatibility

This commit is contained in:
orenom
2022-01-21 17:54:40 +01:00
parent c7efe63218
commit 97588806cd
+5 -1
View File
@@ -18,8 +18,12 @@ const config = {
/**
* You can configure redis below if needed.
* By default Wikiless uses 'redis://127.0.0.1:6379' as the Redis URL.
* Versions before 0.1.1 Wikiless used redis_host and redis_port properties,
* but they are not supported anymore.
* process.env.REDIS_HOST is still here for backwards compatibility.
*/
redis_url: process.env.REDIS_HOST || 'redis://127.0.0.1:6379',
redis_url: process.env.REDIS_URL || process.env.REDIS_HOST || 'redis://127.0.0.1:6379',
redis_password: process.env.REDIS_PASSWORD,
/**