From 0a5db52855373dd6ed950a5f9cd5e6e5595809dd Mon Sep 17 00:00:00 2001 From: Victor Freire Date: Mon, 15 Aug 2022 11:55:38 -0300 Subject: [PATCH] Add ability to connect to PostgreSQL via unix socket --- config-example.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config-example.yaml b/config-example.yaml index 5360f50f..ed447f9a 100644 --- a/config-example.yaml +++ b/config-example.yaml @@ -114,11 +114,9 @@ db_type: sqlite3 db_path: /var/lib/headscale/db.sqlite # # Postgres config +# If using a Unix socket to connect to Postgres, set the socket path in the 'host' field and leave 'port' blank. # db_type: postgres # db_host: localhost - -# This should be set when using a TCP connection, set it to '0' or keep it unset if -# connecting through a unix socket. # db_port: 5432 # db_name: headscale # db_user: foo