0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-30 11:36:20 +00:00
alerta_alerta/alerta/settings.py
2014-12-15 16:40:15 +00:00

54 lines
1.4 KiB
Python

#
# ***** ALERTA SERVER DEFAULT SETTINGS -- DO NOT MODIFY THIS FILE *****
#
# To override these settings use /etc/alertad.conf or the contents of the
# configuration file set by the environment variable ALERTA_SVR_CONF_FILE.
DEBUG = False
SECRET_KEY = r'0Afk\(,8$cr(Y8:MA""knd>[@$U[G.eQL6DjAmVs'
QUERY_LIMIT = 10000 # maximum number of alerts returned by a single query
HISTORY_LIMIT = 100 #
# MongoDB
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
MONGO_DATABASE = 'monitoring'
MONGO_REPLSET = None # 'alerta'
MONGO_USERNAME = 'alerta'
MONGO_PASSWORD = None
AUTH_REQUIRED = False
OAUTH2_CLIENT_ID = 'INSERT-OAUTH2-CLIENT-ID-HERE' # required for access token validation
ALLOWED_EMAIL_DOMAINS = ['gmail.com']
ACCESS_TOKEN_CACHE_MINS = 1440 # 1 day
API_KEY_EXPIRE_DAYS = 365 # 1 year
# Plug-ins
PLUGINS = ['reject', 'amqp']
# PLUGINS = ['amqp', 'enhance', 'logstash', 'normalise', 'reject', 'sns']
# AMQP Credentials
AMQP_URL = 'mongodb://localhost:27017/kombu' # MongoDB
# AMQP_URL = 'amqp://guest:guest@localhost:5672//' # RabbitMQ
# AMQP_URL = 'redis://localhost:6379/' # Redis
# AWS Credentials
AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''
AWS_REGION = 'eu-west-1'
# Inbound
AMQP_QUEUE = 'alerts'
AWS_SQS_QUEUE = 'alerts'
# Outbound
AMQP_TOPIC = 'notify'
AWS_SNS_TOPIC = 'notify'
# Logstash
LOGSTASH_HOST = 'localhost'
LOGSTASH_PORT = 6379