You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-27 22:18:22 +02:00
Update redis urls
This commit is contained in:
@@ -9,8 +9,8 @@ DEFAULT_CONFIG = {
|
|||||||
'BABEL_DEFAULT_LOCALE': 'en',
|
'BABEL_DEFAULT_LOCALE': 'en',
|
||||||
'BABEL_DEFAULT_TIMEZONE': 'UTC',
|
'BABEL_DEFAULT_TIMEZONE': 'UTC',
|
||||||
'BOOTSTRAP_SERVE_LOCAL': True,
|
'BOOTSTRAP_SERVE_LOCAL': True,
|
||||||
'RATELIMIT_STORAGE_URL': 'redis://redis/2',
|
'RATELIMIT_STORAGE_URL': '',
|
||||||
'QUOTA_STORAGE_URL': 'redis://redis/1',
|
'QUOTA_STORAGE_URL': '',
|
||||||
'DEBUG': False,
|
'DEBUG': False,
|
||||||
'DOMAIN_REGISTRATION': False,
|
'DOMAIN_REGISTRATION': False,
|
||||||
'TEMPLATES_AUTO_RELOAD': True,
|
'TEMPLATES_AUTO_RELOAD': True,
|
||||||
@@ -106,6 +106,9 @@ class ConfigManager(dict):
|
|||||||
if self.config['DB_FLAVOR']:
|
if self.config['DB_FLAVOR']:
|
||||||
template = self.DB_TEMPLATES[self.config['DB_FLAVOR']]
|
template = self.DB_TEMPLATES[self.config['DB_FLAVOR']]
|
||||||
self.config['SQLALCHEMY_DATABASE_URI'] = template.format(**self.config)
|
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
|
# update the app config itself
|
||||||
app.config = self
|
app.config = self
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user