Skip to content

Commit

Permalink
feat(api): use persistent database connection
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Sep 9, 2024
1 parent 3d30507 commit 1a3f266
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
}

Expand Down

0 comments on commit 1a3f266

Please sign in to comment.