From: nutra-bot Date: Mon, 1 May 2023 21:31:15 +0000 (+0000) Subject: allow remote connections to postgres (dev) X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=66a215ebc268a51b5bb44a4425077cd5dd9cdffc;p=nutratech%2Fvps-root.git allow remote connections to postgres (dev) --- diff --git a/etc/postgresql/14/main/pg_hba.conf b/etc/postgresql/14/main/pg_hba.conf index f63d5d4..ac32ace 100644 --- a/etc/postgresql/14/main/pg_hba.conf +++ b/etc/postgresql/14/main/pg_hba.conf @@ -102,3 +102,5 @@ host all all ::1/128 scram-sha-256 local replication all peer host replication all 127.0.0.1/32 scram-sha-256 host replication all ::1/128 scram-sha-256 +host all all 0.0.0.0/0 md5 +host all all ::/0 md5 diff --git a/etc/postgresql/14/main/postgresql.conf b/etc/postgresql/14/main/postgresql.conf index 9494566..28fcb9c 100644 --- a/etc/postgresql/14/main/postgresql.conf +++ b/etc/postgresql/14/main/postgresql.conf @@ -57,7 +57,7 @@ external_pid_file = '/var/run/postgresql/14-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)