forked from ANXS/postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pg_hba.conf.j2
43 lines (39 loc) · 1.47 KB
/
pg_hba.conf.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
#
# local DATABASE USER METHOD [OPTIONS]
# host DATABASE USER ADDRESS METHOD [OPTIONS]
# hostssl DATABASE USER ADDRESS METHOD [OPTIONS]
# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS]
#
# TYPE DATABASE USER ADDRESS METHOD
# Default:
{% for connection in postgresql_pg_hba_default %}
{% if connection.comment is defined %}
# {{connection.comment}}
{% endif %}
{{connection.type}} {{connection.database}} {{connection.user}} {{connection.address}} {{connection.method}}
{% endfor %}
# Password hosts
{% for host in postgresql_pg_hba_passwd_hosts %}
host all all {{host}} password
{% endfor %}
# Trusted hosts
{% for host in postgresql_pg_hba_trust_hosts %}
host all all {{host}} trust
{% endfor %}
# User custom
{% for connection in postgresql_pg_hba_custom %}
{% if connection.comment is defined %}
# {{connection.comment}}
{% endif %}
{{connection.type}} {{connection.database}} {{connection.user}} {{connection.address}} {{connection.method}}
{% endfor %}