Co-Authored-By: Antoine Nguyen <tonio@ngyn.org>
This commit is contained in:
Spitap
2023-06-23 17:10:59 +02:00
co-authored by Antoine Nguyen
parent 908d46b689
commit f05478bccd
12 changed files with 138 additions and 12 deletions
+10 -1
View File
@@ -73,6 +73,7 @@ INSTALLED_APPS = (
'django_otp.plugins.otp_totp',
'django_otp.plugins.otp_static',
'django_rename_app',
'django_rq',
)
# A dedicated place to register Modoboa applications
@@ -231,11 +232,19 @@ PID_FILE_STORAGE_PATH = '/tmp'
# REDIS
REDIS_HOST = 'localhost'
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)
# RQ
RQ_QUEUES = {
'default': {
'URL': REDIS_URL,
},
}
# Password validation
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
+2 -5
View File
@@ -1,8 +1,5 @@
from __future__ import unicode_literals
from django.conf.urls import include
from django.urls import re_path
from django.urls import include, path
urlpatterns = [
re_path(r"", include("modoboa.urls")),
path("", include("modoboa.urls")),
]