[MOD] DB Server Docs
This commit is contained in:
@@ -16,8 +16,7 @@ Uncomment and edit the listen_addresses attribute to start listening to start li
|
|||||||
|
|
||||||
On production dont allow all hosts, only your desired IPs
|
On production dont allow all hosts, only your desired IPs
|
||||||
|
|
||||||
|
Replace following in pg_hba.conf
|
||||||
|
|
||||||
|
|
||||||
listen_addresses = '*'
|
listen_addresses = '*'
|
||||||
|
|
||||||
@@ -26,14 +25,13 @@ Now edit the PostgreSQL access policy configuration file.
|
|||||||
vim /etc/postgresql/14/main/pg_hba.conf
|
vim /etc/postgresql/14/main/pg_hba.conf
|
||||||
|
|
||||||
|
|
||||||
Append a new connection policy (a pattern stands for [CONNECTION_TYPE][DATABASE][USER] [ADDRESS][METHOD]) in the bottom of the file.
|
Append a new connection policy (a pattern stands for [CONNECTION_TYPE][DATABASE][USER] [ADDRESS][METHOD]) in the bottom of the file.
|
||||||
|
|
||||||
!!! danger "Caution"
|
!!! danger "Caution"
|
||||||
|
|
||||||
On production dont allow all hosts, only your desired IPs
|
On production dont allow all hosts, only your desired IPs
|
||||||
|
|
||||||
|
Add following in pg_hba.conf
|
||||||
|
|
||||||
|
|
||||||
host all all 0.0.0.0/0 md5
|
host all all 0.0.0.0/0 md5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user