Try to wire up the mailer
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy
2020-04-09 19:06:09 +02:00
parent aca1ae7395
commit 80edffde42
5 changed files with 50 additions and 19 deletions

View File

@ -0,0 +1,18 @@
[DEFAULT]
sslverify = no
output = psql
endpoint = http://localhost:8080/api
timezone = Europe/London
[alerta-mailer]
key = "{{ alerta_mailer_api_key }}"
mail_to = "{{ mail_to }}"
mail_from = "{{ mail_from }}"
amqp_url = redis://localhost:6379/
dashboard_url = http://localhost:8000
smtp_username = "{{ smtp_username }}"
smtp_password = "{{ smtp_passwd }}"
smtp_use_ssl = False
debug = True
skip_mta = False
email_type = text

View File

@ -1,4 +1,4 @@
SITE_LOGO_URL = 'https://www.coops.tech/images/coops/autonomic'
SITE_LOGO_URL = "https://www.coops.tech/images/coops/autonomic"
DEBUG = True
@ -34,33 +34,33 @@ OAUTH2_CLIENT_ID = "{{ oauth_client_id }}"
OAUTH2_CLIENT_SECRET = "{{ oauth_client_secret }}"
SEVERITY_MAP = {
'fatal': 0,
'critical': 1,
'major': 2,
'minor': 3,
'warning': 4,
'indeterminate': 5,
'cleared': 5,
'normal': 5,
'ok': 5,
'informational': 6,
'debug': 7,
'trace': 8,
'unknown': 9
"fatal": 0,
"critical": 1,
"major": 2,
"minor": 3,
"warning": 4,
"indeterminate": 5,
"cleared": 5,
"normal": 5,
"ok": 5,
"informational": 6,
"debug": 7,
"trace": 8,
"unknown": 9
}
DEFAULT_NORMAL_SEVERITY = 'normal' # 'normal', 'ok', 'cleared'
DEFAULT_PREVIOUS_SEVERITY = 'indeterminate'
DEFAULT_NORMAL_SEVERITY = "normal"
DEFAULT_PREVIOUS_SEVERITY = "indeterminate"
PLUGINS = ['reject', 'blackout', 'normalise']
PLUGINS = ["reject", "blackout", "normalise"]
DATABASE_URL = "postgres://{{ db_user }}:{{ db_passwd }}@{{ db_loc }}/{{ db_name }}"
DATABASE_NAME = "{{ db_name }}"
EMAIL_VERIFICATION = False
MAIL_FROM = "alerta-noreply@autonomic.zone"
MAIL_FROM = "{{ mail_from }}"
SMTP_HOST = "mail.gandi.net"
SMTP_PASSWORD = "{{ smtp_passwd }}"
SMTP_PORT = "587"
SMTP_STARTTLS = True
SMTP_USERNAME = 'alerta-noreply'
SMTP_USERNAME = "alerta-noreply"