Skip to content

Commit

Permalink
Activer les connection keep-alive pour Redis
Browse files Browse the repository at this point in the history
Sur recommendation de Scalingo pour essayer de réduire le nombre de
problème de connections vers Redis.
  • Loading branch information
Anto59290 committed Feb 28, 2025
1 parent 3eca24f commit e9e7054
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seves/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
CELERY_TASK_ALWAYS_EAGER = env("CELERY_TASK_ALWAYS_EAGER", default=False)
if not CELERY_TASK_ALWAYS_EAGER:
CELERY_BROKER_URL = env.cache_url("SCALINGO_REDIS_URL")["LOCATION"]
CELERY_REDIS_SOCKET_KEEPALIVE = True

SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True

0 comments on commit e9e7054

Please sign in to comment.