mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-25 05:58:42 +01:00
Merge branch '2.3.x'
This commit is contained in:
@@ -274,10 +274,19 @@ PID_FILE_STORAGE_PATH = "/tmp"
|
||||
|
||||
# REDIS
|
||||
|
||||
REDIS_SENTINEL = bool(os.environ.get("REDIS_SENTINEL", False))
|
||||
REDIS_SENTINELS = [
|
||||
(
|
||||
os.environ.get("REDIS_SENTINEL_HOST", "127.0.0.1"),
|
||||
os.environ.get("REDIS_SENTINEL_PORT", 26379),
|
||||
)
|
||||
]
|
||||
REDIS_MASTER = os.environ.get("REDIS_MASTER", "mymaster")
|
||||
|
||||
REDIS_HOST = os.environ.get("REDIS_HOST", "127.0.0.1")
|
||||
REDIS_PORT = os.environ.get("REDIS_PORT", 6379)
|
||||
REDIS_QUOTA_DB = 0
|
||||
REDIS_URL = "redis://{}:{}/{}".format(REDIS_HOST, REDIS_PORT, REDIS_QUOTA_DB)
|
||||
REDIS_URL = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_QUOTA_DB}"
|
||||
|
||||
# RQ
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@ For more information on this file, see
|
||||
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
Reference in New Issue
Block a user