mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-04 23:27:34 +02:00
Update redis urls
This commit is contained in:
parent
43abbf4d63
commit
ef49357eb3
@ -9,8 +9,8 @@ DEFAULT_CONFIG = {
|
||||
'BABEL_DEFAULT_LOCALE': 'en',
|
||||
'BABEL_DEFAULT_TIMEZONE': 'UTC',
|
||||
'BOOTSTRAP_SERVE_LOCAL': True,
|
||||
'RATELIMIT_STORAGE_URL': 'redis://redis/2',
|
||||
'QUOTA_STORAGE_URL': 'redis://redis/1',
|
||||
'RATELIMIT_STORAGE_URL': '',
|
||||
'QUOTA_STORAGE_URL': '',
|
||||
'DEBUG': False,
|
||||
'DOMAIN_REGISTRATION': False,
|
||||
'TEMPLATES_AUTO_RELOAD': True,
|
||||
@ -106,6 +106,9 @@ class ConfigManager(dict):
|
||||
if self.config['DB_FLAVOR']:
|
||||
template = self.DB_TEMPLATES[self.config['DB_FLAVOR']]
|
||||
self.config['SQLALCHEMY_DATABASE_URI'] = template.format(**self.config)
|
||||
|
||||
self.config['RATELIMIT_STORAGE_URL'] = 'redis://{0}/2'.format(self.config['HOST_REDIS'])
|
||||
self.config['QUOTA_STORAGE_URL'] = 'redis://{0}/1'.format(self.config['HOST_REDIS'])
|
||||
# update the app config itself
|
||||
app.config = self
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user