From 64dde6d518036988d1e9f7bd97ed2da05130d7fe Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 1 Mar 2021 17:35:25 +0100 Subject: [PATCH] Use socket when db is local --- tmpl/gitea.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmpl/gitea.conf b/tmpl/gitea.conf index 60b2401..bf27f3c 100644 --- a/tmpl/gitea.conf +++ b/tmpl/gitea.conf @@ -60,12 +60,12 @@ DB_TYPE = mysql %set %%dbMode = %%getVar("gitea_db_mode") %if %%dbMode == "default" %if %%edb_local == "oui" -HOST = 127.0.0.1:3306 +HOST = /var/run/mysqld/mysqld.sock %else HOST = %%{edb_host}:%%{edb_port} %end if %elif %%dbMode == "local" -HOST = 127.0.0.1:3306 +HOST = /var/run/mysqld/mysqld.sock %elif %%dbMode == "externe" HOST = %%{gitea_dbserver}:%%{gitea_dbport} %end if