Configure host-based authentication parameters
There are several replication settings that need to be added or edited to the pg_hba.conf configuration file. In this example, the settings restrict replication connections to traffic coming from REPLICATION_HOST_IP as the Postgres user repuser with a valid password. REPLICATION_HOST_IP can initiate streaming replication from that machine without additional credentials. You can change the address and method values to match your security and network settings.
For more information about pg_hba.conf, see the [pg_hba documentation][pg-hba-docs].
Configuring host-based authentication parameters
Open the
pg_hba.confconfiguration file and add or edit this line:Restart Postgres to pick up the changes.