Skip to content

Commit

Permalink
Fixed test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Dec 22, 2023
1 parent 103e87a commit f9dd6e3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test_project/test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,24 @@

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

# REDIS

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 = {
'dkim': {
'URL': REDIS_URL,
},
'modoboa': {
'URL': REDIS_URL,
},
}

# Password validation
# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators

Expand Down

0 comments on commit f9dd6e3

Please sign in to comment.