Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ global:
#
# Valid values are a number of seconds, or 0 to disable persistent connections.
# Setting the value to "None" will ensure that connections are never timed out.
# - 0
# - 0
# - 600
# - "None"
# conn_max_age: 600
Expand Down
2 changes: 1 addition & 1 deletion rootfs/api/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
'HOST': os.environ.get('DEIS_DATABASE_SERVICE_HOST', ''),
'PORT': os.environ.get('DEIS_DATABASE_SERVICE_PORT', 5432),
# https://docs.djangoproject.com/en/1.11/ref/databases/#persistent-connections
'CONN_MAX_AGE': 600,
'CONN_MAX_AGE': int(os.environ.get('CONN_MAX_AGE', 600)),
}
}

Expand Down