We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8344d5e commit 11c9e66Copy full SHA for 11c9e66
rootfs/api/settings/production.py
@@ -27,8 +27,6 @@
27
'security.W008'
28
]
29
30
-CONN_MAX_AGE = 60 * 3
31
-
32
# SECURITY: change this to allowed fqdn's to prevent host poisioning attacks
33
# https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts
34
ALLOWED_HOSTS = ['*']
@@ -368,7 +366,7 @@
368
366
'HOST': os.environ.get('DEIS_DATABASE_SERVICE_HOST', ''),
369
367
'PORT': os.environ.get('DEIS_DATABASE_SERVICE_PORT', 5432),
370
# https://docs.djangoproject.com/en/1.11/ref/databases/#persistent-connections
371
- 'CONN_MAX_AGE': 600,
+ 'CONN_MAX_AGE': os.environ.get('CONN_MAX_AGE', 600),
372
}
373
374
0 commit comments