mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
doh
This commit is contained in:
parent
e8871dd77f
commit
34497cff20
@ -153,7 +153,7 @@ class ConfigManager(dict):
|
|||||||
self.config['SESSION_COOKIE_HTTPONLY'] = True
|
self.config['SESSION_COOKIE_HTTPONLY'] = True
|
||||||
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(net.strip(), False) for net in self.config['AUTH_RATELIMIT_EXEMPTION'].split(','))
|
self.config['AUTH_RATELIMIT_EXEMPTION'] = set(ipaddress.ip_network(net.strip(), False) for net in self.config['AUTH_RATELIMIT_EXEMPTION'].split(',')) if self.config['AUTH_RATELIMIT_EXEMPTION'] else set()
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user