-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.py
21 lines (18 loc) · 922 Bytes
/
configuration.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from environs import Env
class Configuration:
def __init__(self):
env = Env()
env.read_env()
self.address = env.str('FB_NC_DYNDNS_FB_ADDRESS', 'fritz.box')
self.user = env.str('FB_NC_DYNDNS_FB_USER')
self.password = env.str('FB_NC_DYNDNS_FB_PASSWORD')
self.tls = env.bool('FB_NC_DYNDNS_FB_TLS', True)
self.timeout = env.int('FB_NC_DYNDNS_FB_TIMEOUT', 10)
self.nc_customer_number = env.int('FB_NC_DYNDNS_NC_CUSTNO')
self.nc_api_key = env.str('FB_NC_DYNDNS_NC_API_KEY')
self.nc_api_pw = env.str('FB_NC_DYNDNS_NC_API_PW')
self.interval = env.int('FB_NC_DYNDNS_INTERVAL', 300)
self.loglevel = env.str('FB_NC_DYNDNS_LOGLEVEL', 'INFO')
self.ipv6_node_id = env.str('FB_NC_DYNDNS_IPV6_NODE_ID')
self.sentry_url = env.str('FB_NC_DYNDNS_SENTRY_URL')
self.dns_targets = env.str('FB_NC_DYNDNS_DNS_TARGETS')