Closed mohammad0omar closed 2 years ago
The HBA file is only edited so far as to allow nodes known to pg_auto_failover to connect to each other. When it comes to connecting your application, then it's up to you to edit the HBA file. See https://pg-auto-failover.readthedocs.io/en/master/security.html#postgres-hba-rules.
Hello, we are using pg_auto_failover in a docker-compose file, hence we want the database to accept external connections.
We need to modify the HBA configuration by adding this line as an example: "host all all 0.0.0.0/0 trust"
in another word we want the cluster to listen to all the addresses, how we can do this in pg_auto_failover??
This is an example from my docker-compose: