Skip to content

Commit

Permalink
fixing cache configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
kravisankaran committed Dec 11, 2023
1 parent 7f07cd2 commit fe05313
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions soloconnect/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,24 +177,24 @@
EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD")
EMAIL_PORT = 587

REDIS_HOST = os.getenv("REDIS_HOST")
REDIS_CACHE_LOCATION = os.getenv("REDIS_CACHE_LOCATION")

CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [
# todo Uncomment host and comment redis url if you want to run locally
# ("127.0.0.1", 6379)
(
"sc-redis.45ncis.ng.0001.use1.cache.amazonaws.com",
REDIS_HOST,
6379,
),
],
},
"CACHES": {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": "redis://sc-redis.45ncis.ng.0001.use1.cache.amazonaws.com:6379/1",
"LOCATION": REDIS_CACHE_LOCATION,
}
},
},
Expand Down

0 comments on commit fe05313

Please sign in to comment.