feat(backend): add option to disable postgres connection pooling

This commit is contained in:
sam 2024-09-10 18:52:13 +02:00
parent 8054d68f79
commit 2323810b06
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
3 changed files with 4 additions and 0 deletions

View file

@ -30,6 +30,8 @@ MetricsPort = 5001
[Database]
; The database URL in ADO.NET format.
Url = "Host=localhost;Database=foxnouns_net;Username=pronouns;Password=pronouns"
; Whether to enable connection pooling. This should be turned off if using pgbouncer. Defaults to true.
EnablePooling = true
; The timeout for opening new connections. Defaults to 5.
Timeout = 5
; The maximum number of open connections. Defaults to 50.