11 lines
294 B
Python
11 lines
294 B
Python
from django.conf import settings
|
|
from config.env import env
|
|
|
|
CELERY_BROKER_URL = 'redis://redis:6379/0'
|
|
CELERY_ACCEPT_CONTENT = ['json']
|
|
CELERY_TASK_SERIALIZER = 'json'
|
|
CELERY_TIMEZONE = settings.TIME_ZONE
|
|
|
|
if not env('DEBUG'):
|
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|