From 84d00099840080a3d2684c7d5973656855ba6d92 Mon Sep 17 00:00:00 2001 From: teddit Date: Sat, 11 Jun 2022 22:59:12 +0200 Subject: [PATCH] add an example about setting the suggested_subreddits array with env vars --- config.js.template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.js.template b/config.js.template index 2390ff0..bdfb17f 100644 --- a/config.js.template +++ b/config.js.template @@ -82,6 +82,13 @@ const config = { * Here you can configure the suggested subreddits which are visible in the * cleaned homepage, and in the top bar. * You should keep at least 'All', and 'Saved'. + * + * If you set your configs with an environment variables for example with + * docker-compose.yml, your suggested_subreddits config could be something + * like this (note the quotes): + * - SUGGESTED_SUBREDDITS=["Popular", "All", "Saved", "selfhosted", "linux", "datahoarder", "Monero"] + * or + * - 'SUGGESTED_SUBREDDITS=["Popular", "All", "Saved", "selfhosted", "linux", "datahoarder", "Monero"]' */ suggested_subreddits: process.env.SUGGESTED_SUBREDDITS ? JSON.parse(process.env.SUGGESTED_SUBREDDITS)