From 1a3f2669cea1d8bdaaee0e835cf303c34a0adb3f Mon Sep 17 00:00:00 2001 From: Peter Thomassen Date: Tue, 10 Sep 2024 01:03:54 +0200 Subject: [PATCH] feat(api): use persistent database connection --- api/api/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/api/settings.py b/api/api/settings.py index ecabc1917..7b67f5ddb 100644 --- a/api/api/settings.py +++ b/api/api/settings.py @@ -69,6 +69,7 @@ "USER": "desec", "PASSWORD": os.environ["DESECSTACK_DBAPI_PASSWORD_desec"], "HOST": "dbapi", + "CONN_MAX_AGE": 3600, # don't reconnect to database on each request }, }