Use socket when db is local
This commit is contained in:
parent
ad3a51f33a
commit
64dde6d518
@ -60,12 +60,12 @@ DB_TYPE = mysql
|
|||||||
%set %%dbMode = %%getVar("gitea_db_mode")
|
%set %%dbMode = %%getVar("gitea_db_mode")
|
||||||
%if %%dbMode == "default"
|
%if %%dbMode == "default"
|
||||||
%if %%edb_local == "oui"
|
%if %%edb_local == "oui"
|
||||||
HOST = 127.0.0.1:3306
|
HOST = /var/run/mysqld/mysqld.sock
|
||||||
%else
|
%else
|
||||||
HOST = %%{edb_host}:%%{edb_port}
|
HOST = %%{edb_host}:%%{edb_port}
|
||||||
%end if
|
%end if
|
||||||
%elif %%dbMode == "local"
|
%elif %%dbMode == "local"
|
||||||
HOST = 127.0.0.1:3306
|
HOST = /var/run/mysqld/mysqld.sock
|
||||||
%elif %%dbMode == "externe"
|
%elif %%dbMode == "externe"
|
||||||
HOST = %%{gitea_dbserver}:%%{gitea_dbport}
|
HOST = %%{gitea_dbserver}:%%{gitea_dbport}
|
||||||
%end if
|
%end if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user