Skip to content
Snippets Groups Projects
Verified Commit c71486c3 authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

archweb: allow re-using the postgresql connection

Keep postgresql connections around for 5 minutes this avoids expensive
authentication requests.
parent 5d736b89
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.postgresql_psycopg2',
'PORT' : 5432,
'CONN_MAX_AGE' : 600,
{% if archweb_db_host != 'localhost' %}
'HOST' : '{{ archweb_db_host }}',
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment