mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-07 16:44:02 +01:00
✨ Read redis password like any other secret
This commit is contained in:
parent
b88974ef9f
commit
bf557877d1
@ -147,7 +147,7 @@ WEBHOOKS_ENABLED = os.environ.get('WEBHOOKS_ENABLED', 'True').lower() == 'true'
|
|||||||
REDIS = {
|
REDIS = {
|
||||||
'HOST': os.environ.get('REDIS_HOST', 'localhost'),
|
'HOST': os.environ.get('REDIS_HOST', 'localhost'),
|
||||||
'PORT': os.environ.get('REDIS_PORT', '6379'),
|
'PORT': os.environ.get('REDIS_PORT', '6379'),
|
||||||
'PASSWORD': os.environ.get('REDIS_PASSWORD', ''),
|
'PASSWORD': os.environ.get('REDIS_PASSWORD', read_secret('redis_password')),
|
||||||
'DATABASE': os.environ.get('REDIS_DATABASE', '0'),
|
'DATABASE': os.environ.get('REDIS_DATABASE', '0'),
|
||||||
'DEFAULT_TIMEOUT': os.environ.get('REDIS_TIMEOUT', '300'),
|
'DEFAULT_TIMEOUT': os.environ.get('REDIS_TIMEOUT', '300'),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user