mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-06 05:00:18 +03:00
Error Correction
This commit is contained in:
parent
1f785bd0cb
commit
f0da061323
|
@ -51,6 +51,7 @@ CACHES = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
REDIS_URL = env("REDIS_TLS_URL")
|
||||||
CELERY_REDIS_BACKEND_USE_SSL = {"ssl_cert_reqs": ssl.CERT_NONE}
|
CELERY_REDIS_BACKEND_USE_SSL = {"ssl_cert_reqs": ssl.CERT_NONE}
|
||||||
CELERY_BROKER_USE_SSL = {"ssl_cert_reqs": ssl.CERT_NONE}
|
CELERY_BROKER_USE_SSL = {"ssl_cert_reqs": ssl.CERT_NONE}
|
||||||
REDIS_SSL = env.bool("REDIS_SSL", default=False)
|
REDIS_SSL = env.bool("REDIS_SSL", default=False)
|
||||||
|
@ -61,7 +62,6 @@ if REDIS_SSL:
|
||||||
"redis.connection.SSLConnection"
|
"redis.connection.SSLConnection"
|
||||||
)
|
)
|
||||||
CACHES["default"]["OPTIONS"]["SSL_CERT_REQS"] = None
|
CACHES["default"]["OPTIONS"]["SSL_CERT_REQS"] = None
|
||||||
|
|
||||||
# SECURITY
|
# SECURITY
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
|
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
|
||||||
|
|
Loading…
Reference in New Issue
Block a user