]> Nutra Git (v2) - nutratech/vps-root.git/commitdiff
allow remote connections to postgres (dev)
authornutra-bot <nutradigest@gmail.com>
Mon, 1 May 2023 21:31:15 +0000 (21:31 +0000)
committernutra-bot <nutradigest@gmail.com>
Mon, 1 May 2023 21:31:15 +0000 (21:31 +0000)
etc/postgresql/14/main/pg_hba.conf
etc/postgresql/14/main/postgresql.conf

index f63d5d46f1f7cc2eeb357249febe8c64409f71ba..ac32ace12c416de93d244aa7b2182fac6eaf19cd 100644 (file)
@@ -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
index 9494566f4e1303608f9f268e02dc7ab2bcb1b14f..28fcb9c91199d5928fe42b98513152b942d770de 100644 (file)
@@ -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)