Add: celery config

This commit is contained in:
Aroy-Art 2023-10-21 19:07:56 +02:00
parent 57c3bb99ef
commit 8031006f45
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -187,5 +187,23 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
#############################################################
#############################################################
# Celery
#############################################################
CELERY_BROKER_URL = os.environ.get("CELERY_BROKER", 'redis://localhost:6379/0')
CELERY_TIMEZONE = TIME_ZONE
#CELERY_RESULT_BACKEND = "redis://localhost:6379/0"
CELERY_RESULT_BACKEND = 'django-db'
CELERY_CACHE_BACKEND = 'django-cache'
CELERY_RESULT_EXTENDED = True
CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'
#############################################################
# Allow embedding in iframes from the same origin
X_FRAME_OPTIONS = 'SAMEORIGIN'