Cap maximum open database connections

Fixes Gitea opening too many connections, which can impact other apps
trying to connect as well.
This commit is contained in:
2025-03-05 13:53:33 +04:00
parent 90bf66ada9
commit 6be99aa3de

View File

@@ -24,6 +24,7 @@ NAME = gitea
USER = gitea USER = gitea
PASSWD = <%= @postgresql_password %> PASSWD = <%= @postgresql_password %>
SSL_MODE = disable SSL_MODE = disable
MAX_OPEN_CONNS = 20
[repository] [repository]
ROOT = <%= @repository_root_directory %> ROOT = <%= @repository_root_directory %>