Switching over to using unix sockets for ICP
This commit is contained in:
@@ -24,7 +24,13 @@ APP_DATA_PATH = {{ gitea_home }}/data
|
||||
|
||||
[database]
|
||||
DB_TYPE = {{ gitea_db_type }}
|
||||
{% if gitea_db_host.startswith('/') %}
|
||||
# Unix socket connection
|
||||
HOST = {{ gitea_db_host }}
|
||||
{% else %}
|
||||
# TCP connection
|
||||
HOST = {{ gitea_db_host }}:{{ gitea_db_port }}
|
||||
{% endif %}
|
||||
NAME = {{ gitea_db_name }}
|
||||
USER = {{ gitea_db_user }}
|
||||
PASSWD = {{ gitea_db_password }}
|
||||
|
||||
Reference in New Issue
Block a user