From 95458570425223a82285bb3ea04ae233aedba54d Mon Sep 17 00:00:00 2001 From: Jens L Date: Wed, 30 Aug 2023 00:13:53 +0200 Subject: [PATCH] root/revert persistent connections (#6677) Revert "root: always use persistent database connections (#6560)" This reverts commit 1d99ec95b5a7f0e5a5e4d6bf6c524e179ee24662. --- authentik/root/settings.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 4e6514144..0302b3116 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -279,15 +279,14 @@ DATABASES = { "SSLROOTCERT": CONFIG.get("postgresql.sslrootcert"), "SSLCERT": CONFIG.get("postgresql.sslcert"), "SSLKEY": CONFIG.get("postgresql.sslkey"), - # https://docs.djangoproject.com/en/4.0/ref/databases/#persistent-connections - "CONN_MAX_AGE": None, - "CONN_HEALTH_CHECKS": True, } } if CONFIG.get_bool("postgresql.use_pgbouncer", False): # https://docs.djangoproject.com/en/4.0/ref/databases/#transaction-pooling-server-side-cursors DATABASES["default"]["DISABLE_SERVER_SIDE_CURSORS"] = True + # https://docs.djangoproject.com/en/4.0/ref/databases/#persistent-connections + DATABASES["default"]["CONN_MAX_AGE"] = None # persistent # Email # These values should never actually be used, emails are only sent from email stages, which