Pipe variables into the configuration
This commit is contained in:
@ -1,5 +0,0 @@
|
||||
[DEFAULT]
|
||||
sslverify = no
|
||||
output = psql
|
||||
endpoint = http://localhost:8080/api
|
||||
timezone = Europe/London
|
||||
@ -1,6 +1,15 @@
|
||||
DEBUG = True
|
||||
SECRET = "^Bpa%i8_nCAc8fI4l9)nhn2EG2!@GJga"
|
||||
SITE_LOGO_URL = 'https://www.coops.tech/images/coops/autonomic'
|
||||
|
||||
DEBUG = False
|
||||
|
||||
SECRET = "{{ alerta_secrey_key }}"
|
||||
|
||||
AUTH_REQUIRED = True
|
||||
AUTH_PROVIDER = 'keycloak'
|
||||
|
||||
KEYCLOAK_URL = "{{ keycloak_url }}"
|
||||
KEYCLOAK_REALM = "{{ keycloak_realm }}"
|
||||
ALLOWED_KEYCLOAK_ROLES = "{{ keycloak_roles }}"
|
||||
|
||||
SEVERITY_MAP = {
|
||||
'fatal': 0,
|
||||
@ -17,8 +26,23 @@ SEVERITY_MAP = {
|
||||
'trace': 8,
|
||||
'unknown': 9
|
||||
}
|
||||
|
||||
DEFAULT_NORMAL_SEVERITY = 'normal' # 'normal', 'ok', 'cleared'
|
||||
DEFAULT_PREVIOUS_SEVERITY = 'indeterminate'
|
||||
|
||||
PLUGINS = ['reject', 'blackout', 'geoip', 'normalise']
|
||||
GEOIP_URL = 'http://ip-api.com/json'
|
||||
|
||||
DATABASE_URL = "postgresql://{{ db_user }}:{{ db_passwd }}@{{ db_loc }}/{{ db_name }}"
|
||||
DATABASE_NAME = "{{ db_name }}"
|
||||
|
||||
EMAIL_VERIFICATION = False
|
||||
|
||||
# Note(decentral1se): enable once we have mail addresses
|
||||
# https://docs.alerta.io/en/latest/configuration.html#email-settings
|
||||
# MAIL_FROM = 'TODO'
|
||||
# SMTP_HOST = 'TODO'
|
||||
# SMTP_PASSWORD = 'TODO'
|
||||
# SMTP_PORT = 'TODO'
|
||||
# SMTP_STARTTLS = 'TODO'
|
||||
# SMTP_USERNAME = 'TODO'
|
||||
|
||||
Reference in New Issue
Block a user