Skip to content

Commit f9dd6e3

Browse files
committed
Fixed test settings
1 parent 103e87a commit f9dd6e3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test_project/test_project/settings.py

+18
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,24 @@
206206

207207
MODOBOA_API_URL = 'https://api.modoboa.org/1/'
208208

209+
# REDIS
210+
211+
REDIS_HOST = os.environ.get('REDIS_HOST', '127.0.0.1')
212+
REDIS_PORT = os.environ.get('REDIS_PORT', 6379)
213+
REDIS_QUOTA_DB = 0
214+
REDIS_URL = 'redis://{}:{}/{}'.format(REDIS_HOST, REDIS_PORT, REDIS_QUOTA_DB)
215+
216+
# RQ
217+
218+
RQ_QUEUES = {
219+
'dkim': {
220+
'URL': REDIS_URL,
221+
},
222+
'modoboa': {
223+
'URL': REDIS_URL,
224+
},
225+
}
226+
209227
# Password validation
210228
# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
211229

0 commit comments

Comments
 (0)