Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hypha/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,10 @@
if REDIS_URL and not (CELERY_BROKER_URL or CELERY_RESULT_BACKEND):
cert_param = ""
if REDIS_URL.startswith("rediss") and REDIS_SSL_CERT_REQS:
cert_param = f"?ssl_cert_reqs={REDIS_SSL_CERT_REQS}"
check_hostname = str(REDIS_SSL_CERT_REQS != "CERT_NONE").lower()
cert_param = (
f"?ssl_cert_reqs={REDIS_SSL_CERT_REQS}&ssl_check_hostname={check_hostname}"
)
CELERY_BROKER_URL = f"{REDIS_URL}/0{cert_param}"
CELERY_RESULT_BACKEND = f"{REDIS_URL}{cert_param}"
# Manipulation of the environ vars is needed due to how celery processes & prioritizes settings
Expand Down
Loading