This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
alerta.autonomic.zone/deploy.d/templates/alertad.conf

80 lines
1.9 KiB
Plaintext
Raw Normal View History

2020-04-15 19:35:53 +00:00
SITE_LOGO_URL = "https://www.coops.tech/images/coops/autonomic"
DEBUG = True
SECRET = "{{ vault.alerta_secret_key }}"
DASHBOARD_URL = "https://{{ config.vars.domain }}"
BASE_URL = "/api"
USE_PROXYFIX = True
AUTH_REQUIRED = True
AUTH_PROVIDER = "keycloak"
ADMIN_USERS = [
"calix",
"decentral1se",
"gunnar",
"kawaiipunk",
"naomi",
"roxie",
"takkaria"
]
USER_DEFAULT_SCOPES = ["admin"]
SIGNUP_ENABLED = False
KEYCLOAK_URL = "{{ config.vars.keycloak_url }}"
KEYCLOAK_REALM = "{{ config.vars.keycloak_realm }}"
ALLOWED_KEYCLOAK_ROLES = ["{{ config.vars.keycloak_role }}"]
OAUTH2_CLIENT_ID = "{{ vault.oauth_client_id }}"
OAUTH2_CLIENT_SECRET = "{{ vault.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
}
DEFAULT_NORMAL_SEVERITY = "normal"
DEFAULT_PREVIOUS_SEVERITY = "indeterminate"
PLUGINS = [
"alerta-mailer",
"amqp",
"blackout",
"normalise",
"rocketchat",
]
2020-04-16 11:08:32 +00:00
AMQP_URL = "{{ dokku.mongodb_type }}://{{ dokku.mongodb_user }}:{{ vault.db_passwd }}@{{ dokku.mongodb_addr }}/{{ dokku.app }}"
2020-04-15 19:35:53 +00:00
AMQP_TOPIC = "notify"
ROCKETCHAT_WEBHOOK_URL = "{{ vault.rocket_chat_webhook_url }}"
ROCKETCHAT_CHANNEL = "{{ config.vars.rocket_chat_channel }}"
ALERTA_USERNAME = "{{ config.vars.alerta_username }}"
ICON_EMOJI = "{{ config.vars.rocket_chat_icon_emoji }}"
2020-04-16 11:08:32 +00:00
DATABASE_URL = "{{ dokku.mongodb_type }}://{{ dokku.mongodb_user }}:{{ vault.db_passwd }}@{{ dokku.mongodb_addr }}/{{ dokku.app }}"
2020-04-15 19:35:53 +00:00
DATABASE_NAME = "{{ dokku.app }}"
EMAIL_VERIFICATION = False
MAIL_FROM = "{{ config.vars.mail_from }}"
SMTP_HOST = "{{ config.vars.smtp_host }}"
SMTP_PASSWORD = "{{ vault.smtp_passwd }}"
SMTP_PORT = "{{ config.vars.smtp_port }}"
SMTP_STARTTLS = True
SMTP_USERNAME = "{{ config.vars.smtp_username }}"
CORS_ORIGINS = ["*"]