From 97588806cd4e5282b019e7c58da2d90d994c698e Mon Sep 17 00:00:00 2001 From: orenom Date: Fri, 21 Jan 2022 17:54:40 +0100 Subject: [PATCH] use primarily REDIS_URL env variable for config.redis_url - keep REDIS_HOST here for backwards compatibility --- config.js.template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config.js.template b/config.js.template index 465ad32..e5ff9d4 100644 --- a/config.js.template +++ b/config.js.template @@ -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, /**