From 314d5e58bb149cfa64885d9d33b2d66422141cde Mon Sep 17 00:00:00 2001 From: casjay Date: Fri, 16 Oct 2026 10:16:58 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20tune=20gitea=20SQL=20logging=20a?= =?UTF-8?q?nd=20SQLite=20settings=20=F0=9F=94=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Enable LOG_SQL for query debugging - Set SQLITE_JOURNAL_MODE to WAL for better concurrent access - Add SQLITE_TIMEOUT of 5000 ms to reduce database locked errors rootfs/tmp/etc/gitea/app.ini --- rootfs/tmp/etc/gitea/app.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rootfs/tmp/etc/gitea/app.ini b/rootfs/tmp/etc/gitea/app.ini index 90d20f7..6b73a41 100644 --- a/rootfs/tmp/etc/gitea/app.ini +++ b/rootfs/tmp/etc/gitea/app.ini @@ -151,14 +151,16 @@ HOST = REPLACE_SQL_HOST USER = REPLACE_SQL_USER PASSWD = REPLACE_SQL_PASS NAME = REPLACE_SQL_NAME -LOG_SQL = false +LOG_SQL = true SCHEMA = +SQLITE_JOURNAL_MODE = WAL SSL_MODE = disable CHARSET = utf8 PATH = REPLACE_DATABASE_DIR/gitea.db MAX_IDLE_CONNS = 2 MAX_OPEN_CONNS = 100 CONN_MAX_LIFETIME = 3s +SQLITE_TIMEOUT = 5000 ITERATE_BUFFER_SIZE = 50 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [git]