From e35bddd3804bb6ab3498a47df313a4118c80517e Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 8 Jan 2021 15:17:28 +0100 Subject: [PATCH] Use DB name env var --- alerta.conf.tmpl | 2 +- alertad.conf.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alerta.conf.tmpl b/alerta.conf.tmpl index 5bf253f..d599dc2 100644 --- a/alerta.conf.tmpl +++ b/alerta.conf.tmpl @@ -8,7 +8,7 @@ timezone = Europe/London [alerta-mailer] amqp_topic = notify -amqp_url = "{{ env "MONGODB_TYPE" }}://{{ env "MONGODB_USER" }}:{{ secret "db_root_password" }}@{{ env "MONGODB_ADDR" }}/alerta" +amqp_url = "{{ env "MONGODB_TYPE" }}://{{ env "MONGODB_USER" }}:{{ secret "db_root_password" }}@{{ env "MONGODB_ADDR" }}/{{ env "MONGODB_NAME" }}" config_file = /app/alerta.conf dashboard_url = https://{{ env "DOMAIN" }} debug = {{ env "DEBUG" }} diff --git a/alertad.conf.tmpl b/alertad.conf.tmpl index 50393f3..9c2ef77 100644 --- a/alertad.conf.tmpl +++ b/alertad.conf.tmpl @@ -49,7 +49,7 @@ PLUGINS = [ "rocketchat", ] -AMQP_URL = "{{ env "MONGODB_TYPE" }}://{{ env "MONGODB_USER" }}:{{ secret "db_root_password" }}@{{ env "MONGODB_ADDR" }}/alerta" +AMQP_URL = "{{ env "MONGODB_TYPE" }}://{{ env "MONGODB_USER" }}:{{ secret "db_root_password" }}@{{ env "MONGODB_ADDR" }}/{{ env "MONGODB_NAME" }}" AMQP_TOPIC = "notify" ROCKETCHAT_WEBHOOK_URL = "{{ secret "rocket_chat_webhook_url" }}" @@ -57,7 +57,7 @@ ROCKETCHAT_CHANNEL = "{{ env "ROCKET_CHAT_CHANNEL" }}" ALERTA_USERNAME = "{{ env "ROCKET_CHAT_ALERTA_USERNAME" }}" ICON_EMOJI = "{{ env "ROCKET_CHAT_ICON_EMOJI" }}" -DATABASE_URL = "{{ env "MONGODB_TYPE" }}://{{ env "MONGODB_USER" }}:{{ secret "db_root_password" }}@{{ env "MONGODB_ADDR" }}/alerta" +DATABASE_URL = "{{ env "MONGODB_TYPE" }}://{{ env "MONGODB_USER" }}:{{ secret "db_root_password" }}@{{ env "MONGODB_ADDR" }}/{{ env "MONGODB_NAME" }}" DATABASE_NAME = "{{ env "MONGODB_NAME" }}" EMAIL_VERIFICATION = False