-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpg_hba.conf.j2
More file actions
19 lines (18 loc) · 893 Bytes
/
pg_hba.conf.j2
File metadata and controls
19 lines (18 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 {{ db.postgres.auth }}
# IPv6 local connections:
host all all ::1/128 {{ db.postgres.auth }}
# replication and dataverse access from other servers
{% if db.postgres.replication.enabled is defined %}
{% for item in db.postgres.replication.servers %}
{% if item | regex_search(".*/.*") %}
host all all {{ item }} {{ db.postgres.auth }}
host replication rep {{ item }} {{ db.postgres.auth }}
{% else %}
host all all {{ item }}/32 {{ db.postgres.auth }}
host replication rep {{ item }}/32 {{ db.postgres.auth }}
{% endif %}
{% endfor %}
{% endif %}