We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 732da5f commit d584f52Copy full SHA for d584f52
rootfs/api/settings/production.py
@@ -24,8 +24,6 @@
24
'security.W008'
25
]
26
27
-CONN_MAX_AGE = 60 * 3
28
-
29
# SECURITY: change this to allowed fqdn's to prevent host poisioning attacks
30
# https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts
31
ALLOWED_HOSTS = ['*']
@@ -354,7 +352,7 @@
354
352
'HOST': os.environ.get('DEIS_DATABASE_SERVICE_HOST', ''),
355
353
'PORT': os.environ.get('DEIS_DATABASE_SERVICE_PORT', 5432),
356
# https://docs.djangoproject.com/en/1.11/ref/databases/#persistent-connections
357
- 'CONN_MAX_AGE': 600,
+ 'CONN_MAX_AGE': os.environ.get('CONN_MAX_AGE', 600),
358
}
359
360
0 commit comments