From 95dce5575b6c4ef41bfdcc560f82ad17b2eebac3 Mon Sep 17 00:00:00 2001 From: Mildred Ki'Lya Date: Thu, 15 Aug 2019 11:25:04 +0200 Subject: [PATCH] Parameterize redis address --- CHANGELOG.md | 1 + core/admin/mailu/configuration.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8cf9798..f34ea3cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ v1.6.1 - unreleased - Bug: Implement mailustart to resolve webmail in admin ([#716](https://github.com/Mailu/Mailu/issues/716)) - Bug: Rename cli commands and their options (replace "\_" with "-") ([#877](https://github.com/Mailu/Mailu/issues/877)) - Bug: Fix typo in migration script ([#905](https://github.com/Mailu/Mailu/issues/905)) +- Bug: Fix redis hostname in admin v1.6.0 - 2019-01-18 ------------------- diff --git a/core/admin/mailu/configuration.py b/core/admin/mailu/configuration.py index 9d9ac215..0a22e08d 100644 --- a/core/admin/mailu/configuration.py +++ b/core/admin/mailu/configuration.py @@ -8,8 +8,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': 'redis://%s/2' % (os.getenv("REDIS_ADDRESS", "redis")), + 'QUOTA_STORAGE_URL': 'redis://%s/1' % (os.getenv("REDIS_ADDRESS", "redis")), 'DEBUG': False, 'DOMAIN_REGISTRATION': False, 'TEMPLATES_AUTO_RELOAD': True,