Skip to content

Commit

Permalink
Updated settings.py with RQ
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfireap authored Feb 5, 2024
1 parent f3bbfda commit 4be9a8f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test_project/test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,25 @@

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 4be9a8f

Please sign in to comment.