lainmonitor/config.py
hax 49eea13117 Add config.py
Outsourced hardcoded credentials into a single config file.

Signed-off-by: hax <hax@lainlounge.org>
2025-07-22 09:10:44 +00:00

40 lines
1,002 B
Python

# 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'
}
}