Below is an example of a PostgreSQL host-based authentication configuration inĀ $PGDATA/pg_hba.conf
.
Example - PostgreSQL HBA Configuration File
# TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all peer # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 ident