Files
eimzo/config/conf/celery.py
2025-07-29 18:01:49 +05:00

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')