Issue #42: Use correct redis Django connection info.

This commit is contained in:
Jeff Geerling
2020-05-26 16:35:27 -05:00
parent aeecc94017
commit 5b195cf872

View File

@@ -112,11 +112,17 @@ data:
BROKER_URL = 'redis://{}:{}/'.format(
'{{ meta.name }}-redis.{{ meta.namespace }}.svc.cluster.local',
'6379',)
'6379')
CHANNEL_LAYERS = {
'default': {'BACKEND': 'awx.main.channels.RedisGroupBroadcastChannelLayer',
'CONFIG': {'hosts': [("{{ meta.name }}-redis.{{ meta.namespace }}.svc.cluster.local", 6379)]}}
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [BROKER_URL],
"capacity": 10000,
"group_expiry": 157784760, # 5 years
}
}
}
USE_X_FORWARDED_PORT = True