forked from hornet/lainmonitor
Add config.py
Outsourced hardcoded credentials into a single config file. Signed-off-by: hax <hax@lainlounge.org>
This commit is contained in:
parent
ae07a3a86d
commit
49eea13117
1 changed files with 40 additions and 0 deletions
40
config.py
Normal file
40
config.py
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
# Configuration for Lainmonitor
|
||||||
|
|
||||||
|
# Telegram bot token
|
||||||
|
TOKEN = 'PLACE_YOUR_TOKEN_HERE'
|
||||||
|
|
||||||
|
# Allowed Telegram chat IDs (whitelist)
|
||||||
|
ALLOWED_CHATS = [123456789, 987654321]
|
||||||
|
|
||||||
|
# Per-host configuration
|
||||||
|
HOSTS = {
|
||||||
|
'10.0.0.1': {
|
||||||
|
'type': 'opnsense',
|
||||||
|
'api_url': 'https://10.0.0.1/api',
|
||||||
|
'api_key': 'OPN_KEY_1',
|
||||||
|
'api_secret': 'OPN_SECRET_1'
|
||||||
|
},
|
||||||
|
'10.128.0.1': {
|
||||||
|
'type': 'opnsense',
|
||||||
|
'api_url': 'https://10.128.0.1/api',
|
||||||
|
'api_key': 'OPN_KEY_2',
|
||||||
|
'api_secret': 'OPN_SECRET_2'
|
||||||
|
},
|
||||||
|
'10.144.0.1': {
|
||||||
|
'type': 'opnsense',
|
||||||
|
'api_url': 'https://10.144.0.1/api',
|
||||||
|
'api_key': 'OPN_KEY_3',
|
||||||
|
'api_secret': 'OPN_SECRET_3'
|
||||||
|
},
|
||||||
|
'10.130.1.1': {
|
||||||
|
'type': 'opnsense',
|
||||||
|
'api_url': 'https://10.130.1.1/api',
|
||||||
|
'api_key': 'OPN_KEY_4',
|
||||||
|
'api_secret': 'OPN_SECRET_4'
|
||||||
|
},
|
||||||
|
'10.177.0.100': {
|
||||||
|
'type': 'generic',
|
||||||
|
'ssh_user': 'SSH_USER_100',
|
||||||
|
'ssh_pass': 'SSH_PASS_100'
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue