Skip to content

Commit

Permalink
Fixed tests settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Oct 20, 2023
1 parent efd6721 commit c47f094
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test_project/test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,21 @@

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,
},
}

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

Expand Down

0 comments on commit c47f094

Please sign in to comment.