From 6be99aa3dedfc5c0d9ab1ed30cae41a826027e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 5 Mar 2025 13:53:33 +0400 Subject: [PATCH] Cap maximum open database connections Fixes Gitea opening too many connections, which can impact other apps trying to connect as well. --- site-cookbooks/kosmos_gitea/templates/default/app.ini.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb index 5c79bba..5eacffc 100644 --- a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb +++ b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb @@ -24,6 +24,7 @@ NAME = gitea USER = gitea PASSWD = <%= @postgresql_password %> SSL_MODE = disable +MAX_OPEN_CONNS = 20 [repository] ROOT = <%= @repository_root_directory %>