Skip to content

Commit f1a3c2e

Browse files
authored
Merge pull request snaplet#18 from snaplet/chore/expose_pg_port
changed pg_hba.conf and postgresql.conf to allow traffic from outside…
2 parents ca500f9 + 51de803 commit f1a3c2e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/buildroot/config/board/pg-browser/rootfs_overlay/var/lib/pgsql/pg_hba.conf

+3
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,6 @@ host all all ::1/128 trust
9696
local replication all trust
9797
host replication all 127.0.0.1/32 trust
9898
host replication all ::1/128 trust
99+
# Allow connections from the outside world
100+
host all all 0.0.0.0/0 md5
101+
host all all ::/0 md5

packages/buildroot/config/board/pg-browser/rootfs_overlay/var/lib/pgsql/postgresql.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
# - Connection Settings -
5959

60-
#listen_addresses = 'localhost' # what IP address(es) to listen on;
60+
listen_addresses = '*' # what IP address(es) to listen on;
6161
# comma-separated list of addresses;
6262
# defaults to 'localhost'; use '*' for all
6363
# (change requires restart)

0 commit comments

Comments
 (0)