From 23b0d6c7041a234e0721fb955c3e0ecb5ff4a28e Mon Sep 17 00:00:00 2001 From: VC Date: Fri, 5 Jul 2024 11:53:22 +0200 Subject: [PATCH] fix: adapt pg conf to nupes.social --- roles/postgres/files/pg_hba.conf | 4 ++++ roles/postgres/files/postgresql.conf | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/postgres/files/pg_hba.conf b/roles/postgres/files/pg_hba.conf index 6b80da8..1085ae9 100644 --- a/roles/postgres/files/pg_hba.conf +++ b/roles/postgres/files/pg_hba.conf @@ -92,6 +92,10 @@ local all all md5 host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5 +# IPv4 distant connections: +host all all 0.0.0.0/0 md5 +# IPv6 distant connections: +host all all ::/0 md5 # Allow replication connections from localhost, by a user with the # replication privilege. #local replication postgres peer diff --git a/roles/postgres/files/postgresql.conf b/roles/postgres/files/postgresql.conf index 617ba26..3e03cf9 100644 --- a/roles/postgres/files/postgresql.conf +++ b/roles/postgres/files/postgresql.conf @@ -56,7 +56,7 @@ external_pid_file = '/var/run/postgresql/13-main.pid' # write an extra PID fil # - Connection Settings - -#listen_addresses = 'localhost' # what IP address(es) to listen on; +listen_addresses = '*' # what IP address(es) to listen on; # comma-separated list of addresses; # defaults to 'localhost'; use '*' for all # (change requires restart)