mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-24 17:04:09 +01:00
Merge pull request #176 from sdktr/patch-1
Add CONN_MAX_AGE to database connection settings
This commit is contained in:
commit
3f2fe54bfd
@ -37,6 +37,8 @@ DATABASE = {
|
||||
# PostgreSQL password
|
||||
'HOST': os.environ.get('DB_HOST', 'localhost'), # Database server
|
||||
'PORT': os.environ.get('DB_PORT', ''), # Database port (leave blank for default)
|
||||
'CONN_MAX_AGE': int(os.environ.get('DB_CONN_MAX_AGE', '300')),
|
||||
# Database connection persistence
|
||||
}
|
||||
|
||||
# This key is used for secure generation of random numbers and strings. It must never be exposed outside of this file.
|
||||
|
Loading…
Reference in New Issue
Block a user