|
|
@ -156,6 +156,7 @@ class ConfigManager(dict):
|
|
|
|
self.config['PERMANENT_SESSION_LIFETIME'] = timedelta(hours=int(self.config['SESSION_LIFETIME']))
|
|
|
|
self.config['PERMANENT_SESSION_LIFETIME'] = timedelta(hours=int(self.config['SESSION_LIFETIME']))
|
|
|
|
hostnames = [host.strip() for host in self.config['HOSTNAMES'].split(',')]
|
|
|
|
hostnames = [host.strip() for host in self.config['HOSTNAMES'].split(',')]
|
|
|
|
self.config['AUTH_RATELIMIT_EXEMPTION'] = set(ipaddress.ip_network(cidr, False) for cidr in (cidr.strip() for cidr in self.config['AUTH_RATELIMIT_EXEMPTION'].split(',')) if cidr)
|
|
|
|
self.config['AUTH_RATELIMIT_EXEMPTION'] = set(ipaddress.ip_network(cidr, False) for cidr in (cidr.strip() for cidr in self.config['AUTH_RATELIMIT_EXEMPTION'].split(',')) if cidr)
|
|
|
|
|
|
|
|
self.config['MESSAGE_RATELIMIT_EXEMPTION'] = set([s for s in self.config['MESSAGE_RATELIMIT_EXEMPTION'].lower().replace(' ', '').split(',') if s])
|
|
|
|
self.config['HOSTNAMES'] = ','.join(hostnames)
|
|
|
|
self.config['HOSTNAMES'] = ','.join(hostnames)
|
|
|
|
self.config['HOSTNAME'] = hostnames[0]
|
|
|
|
self.config['HOSTNAME'] = hostnames[0]
|
|
|
|
# update the app config itself
|
|
|
|
# update the app config itself
|
|
|
|