From 9776adc1a122ce0233bf3fb265544d114ee36fe4 Mon Sep 17 00:00:00 2001 From: nenych Date: Tue, 3 Sep 2024 17:50:20 +0200 Subject: [PATCH] Add DISCOURSE_REDIS_DB to make it configurable Signed-off-by: nenych --- .../3/debian-12/rootfs/opt/bitnami/scripts/discourse-env.sh | 4 ++++ .../3/debian-12/rootfs/opt/bitnami/scripts/libdiscourse.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/bitnami/discourse/3/debian-12/rootfs/opt/bitnami/scripts/discourse-env.sh b/bitnami/discourse/3/debian-12/rootfs/opt/bitnami/scripts/discourse-env.sh index 525ba6c42828a..f98f971e7060c 100644 --- a/bitnami/discourse/3/debian-12/rootfs/opt/bitnami/scripts/discourse-env.sh +++ b/bitnami/discourse/3/debian-12/rootfs/opt/bitnami/scripts/discourse-env.sh @@ -61,6 +61,7 @@ discourse_env_vars=( DISCOURSE_REDIS_HOST DISCOURSE_REDIS_PORT_NUMBER DISCOURSE_REDIS_PASSWORD + DISCOURSE_REDIS_DB DISCOURSE_REDIS_USE_SSL DISCOURSE_HOSTNAME DISCOURSE_SKIP_INSTALL @@ -79,6 +80,7 @@ discourse_env_vars=( REDIS_HOST REDIS_PORT_NUMBER REDIS_PASSWORD + REDIS_DB REDIS_USE_SSL ) for env_var in "${discourse_env_vars[@]}"; do @@ -172,6 +174,8 @@ DISCOURSE_REDIS_PORT_NUMBER="${DISCOURSE_REDIS_PORT_NUMBER:-"${REDIS_PORT_NUMBER export DISCOURSE_REDIS_PORT_NUMBER="${DISCOURSE_REDIS_PORT_NUMBER:-6379}" DISCOURSE_REDIS_PASSWORD="${DISCOURSE_REDIS_PASSWORD:-"${REDIS_PASSWORD:-}"}" export DISCOURSE_REDIS_PASSWORD="${DISCOURSE_REDIS_PASSWORD:-}" +DISCOURSE_REDIS_DB="${DISCOURSE_REDIS_DB:-"${REDIS_DB:-}"}" +export DISCOURSE_REDIS_DB="${DISCOURSE_REDIS_DB:-}" DISCOURSE_REDIS_USE_SSL="${DISCOURSE_REDIS_USE_SSL:-"${REDIS_USE_SSL:-}"}" export DISCOURSE_REDIS_USE_SSL="${DISCOURSE_REDIS_USE_SSL:-no}" diff --git a/bitnami/discourse/3/debian-12/rootfs/opt/bitnami/scripts/libdiscourse.sh b/bitnami/discourse/3/debian-12/rootfs/opt/bitnami/scripts/libdiscourse.sh index 2d17aab02c2fe..5b76885246aa1 100644 --- a/bitnami/discourse/3/debian-12/rootfs/opt/bitnami/scripts/libdiscourse.sh +++ b/bitnami/discourse/3/debian-12/rootfs/opt/bitnami/scripts/libdiscourse.sh @@ -255,6 +255,7 @@ discourse_create_conf_file() { discourse_conf_set "redis_host" "$DISCOURSE_REDIS_HOST" discourse_conf_set "redis_port" "$DISCOURSE_REDIS_PORT_NUMBER" discourse_conf_set "redis_password" "$DISCOURSE_REDIS_PASSWORD" + discourse_conf_set "redis_db" "$DISCOURSE_REDIS_DB" is_boolean_yes "$DISCOURSE_REDIS_USE_SSL" && discourse_conf_set "redis_use_ssl" true # SMTP credentials if ! is_empty_value "$DISCOURSE_SMTP_HOST"; then