From 162f0ad25c14ad651b6470677b10f9ec1fd59af4 Mon Sep 17 00:00:00 2001 From: Gusted Date: Wed, 21 Feb 2024 11:55:43 +0100 Subject: [PATCH] admin: add new option to config cheat sheet - Ref: https://codeberg.org/forgejo/forgejo/pulls/2418 --- docs/admin/config-cheat-sheet.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/admin/config-cheat-sheet.md b/docs/admin/config-cheat-sheet.md index 8d0c47ff..80f39bae 100644 --- a/docs/admin/config-cheat-sheet.md +++ b/docs/admin/config-cheat-sheet.md @@ -446,6 +446,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a - `MAX_OPEN_CONNS` **0**: Database maximum open connections - default is 0, meaning there is no limit. - `MAX_IDLE_CONNS` **2**: Max idle database connections on connection pool, default is 2 - this will be capped to `MAX_OPEN_CONNS`. - `CONN_MAX_LIFETIME` **0 or 3s**: Sets the maximum amount of time a DB connection may be reused - default is 0, meaning there is no limit (except on MySQL/MariaDB where it is 3s - see #6804 & #7071). +- `CONN_MAX_IDLETIME` **0**: Sets the maximum amount of time a DB connection may be idle - default is 0, meaning there is no limit. - `AUTO_MIGRATION` **true**: Whether execute database models migrations automatically. - `SLOW_QUERY_THRESHOLD`: **5s**: Sets the threshold for SQL queries before they are logged as slow queries in the log.