Skip to content

Commit 27ab25b

Browse files
author
=
committed
redis host
1 parent 6de5dcc commit 27ab25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fishauctions/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
'default': {
4747
'BACKEND': 'channels_redis.core.RedisChannelLayer',
4848
'CONFIG': {
49-
"hosts": [("redis://:" + os.environ.get('REDIS_PASSWORD', 'unsecure') + "@127.0.0.1:6379/0")],
49+
"hosts": [("redis://:" + os.environ.get('REDIS_PASSWORD', 'unsecure') + "@" + os.environ.get('REDIS_HOST', 'redis') + ":6379/0")],
5050
#"hosts": [('127.0.0.1', 6379)],
5151
"capacity": 2000, # default 100
5252
"expiry": 20, # default 60

0 commit comments

Comments
 (0)