Use socket when db is local

This commit is contained in:
Philippe Caseiro 2021-03-01 17:35:25 +01:00
parent ad3a51f33a
commit 64dde6d518
1 changed files with 2 additions and 2 deletions

View File

@ -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