martinrusev / django-redis-sessions

Session backend for Django that stores sessions in a Redis database
BSD 3-Clause "New" or "Revised" License
494 stars 106 forks source link

SSL support? #67

Open fedorukol opened 3 years ago

fedorukol commented 3 years ago

Hi, we are using django-redis-sessions in our project and it works fine but we want to secure redis-django connection.

Is this possible in some way?

Thanks.

taylor-cedar commented 3 years ago

This is supported. You need to use the URL though.

SESSION_REDIS = dict(
    url=f"rediss://:{REDIS_SESSION_PASSWORD}@{REDIS_SESSION_HOST}:{REDIS_SESSION_PORT}/{REDIS_SESSION_DB}"
)