· 5 years ago · Mar 16, 2020, 10:26 AM
1=============
2==== MOM ====
3=============
4
5DATABASE_URL = 'postgres://postgres:postgres@alerta_db:5432/monitoring'
6PLUGINS = ['remote_ip', 'reject', 'blackout', 'normalise', 'enhance', 'heartbeat', 'forwarder']
7
8SIGNUP_ENABLED = "False"
9SECRET_KEY = 'changeme'
10
11# Forwarder Settings
12
13HMAC_AUTH_CREDENTIALS = [
14 {
15 'id': 'AKID001',
16 'key': 'supersecret',
17 'algorithm': 'sha256'
18 }
19]
20
21
22X_FORWARDED = 'manager-of-managers'
23FWD_DESTINATIONS = [
24 ('http://nag1.example.net:8080/api', 'AKID002', 'supersecret2', ['actions']), # forward actions ONLY
25 ('http://nag2.example.net:8080/api', 'AKID003', 'supersecret3', ['actions']) # forward actions ONLY
26]
27
28ALLOWED_ENVIRONMENTS = ['Production', 'Development']
29
30===============
31==== MLM 1 ====
32===============
33
34DATABASE_URL = 'postgres://postgres:postgres@alerta_db:5432/monitoring'
35PLUGINS = ['remote_ip', 'reject', 'blackout', 'normalise', 'enhance', 'heartbeat', 'forwarder']
36
37SIGNUP_ENABLED = "False"
38SECRET_KEY = 'changeme'
39
40
41# Forwarder Settings
42HMAC_AUTH_CREDENTIALS = [
43 {
44 'id': 'AKID002',
45 'key': 'supersecret2',
46 'algorithm': 'sha256'
47 }
48]
49
50X_FORWARDED = 'nag1.stage'
51FWD_DESTINATIONS = [
52 ('http://nagios.example.net:8080/api', 'AKID001', 'supersecret', ['*']) # forward everything ie. alerts and actions
53]
54
55ALLOWED_ENVIRONMENTS = ['Production', 'Development']
56
57===============
58==== MLM 2 ====
59===============
60
61DATABASE_URL = 'postgres://postgres:postgres@alerta_db:5432/monitoring'
62PLUGINS = ['remote_ip', 'reject', 'blackout', 'normalise', 'enhance', 'heartbeat', 'forwarder']
63
64SIGNUP_ENABLED = "False"
65SECRET_KEY = 'changeme'
66
67
68# Forwarder Settings
69HMAC_AUTH_CREDENTIALS = [
70 {
71 'id': 'AKID003',
72 'key': 'supersecret3',
73 'algorithm': 'sha256'
74 }
75]
76
77X_FORWARDED = 'nag2.stage'
78FWD_DESTINATIONS = [
79 ('http://nagios.example.net:8080/api', 'AKID001', 'supersecret', ['*']) # forward everything ie. alerts and actions
80]
81
82ALLOWED_ENVIRONMENTS = ['Production', 'Development']