mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-05 20:50:17 +03:00
Simplify Redis TLS configuration with single environment variable
This commit is contained in:
parent
3d889e6323
commit
e65ce78bf5
|
@ -24,8 +24,6 @@ Run these commands to deploy the project to Heroku:
|
|||
|
||||
# Enable Redis TLS support (required for new Heroku Redis instances)
|
||||
heroku config:set REDIS_SSL=True
|
||||
heroku config:set CELERY_BROKER_USE_SSL=True
|
||||
heroku config:set CELERY_REDIS_BACKEND_USE_SSL=True
|
||||
|
||||
# Assuming you chose Mailgun as mail service (see below for others)
|
||||
heroku addons:create mailgun:starter
|
||||
|
|
|
@ -283,8 +283,8 @@ LOGGING = {
|
|||
}
|
||||
|
||||
REDIS_URL = env("REDIS_URL", default="redis://{% if cookiecutter.use_docker == 'y' %}redis{%else%}localhost{% endif %}:6379/0")
|
||||
CELERY_BROKER_USE_SSL = env.bool("CELERY_BROKER_USE_SSL", default=False)
|
||||
CELERY_REDIS_BACKEND_USE_SSL = env.bool("CELERY_REDIS_BACKEND_USE_SSL", default=False)
|
||||
CELERY_BROKER_USE_SSL = env.bool("REDIS_SSL", default=False)
|
||||
CELERY_REDIS_BACKEND_USE_SSL = env.bool("REDIS_SSL", default=False)
|
||||
|
||||
|
||||
{% if cookiecutter.use_celery == 'y' -%}
|
||||
|
|
Loading…
Reference in New Issue
Block a user