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)