add options to restrict source ips in pg_hba.conf
This commit is contained in:
parent
18befd9978
commit
5ea5230644
2 changed files with 2 additions and 1 deletions
|
|
@ -6,5 +6,6 @@ postgresql:
|
|||
max_connections: 100
|
||||
shared_buffers: 128MB
|
||||
allowed_hosts: {}
|
||||
listen_addresses: 'localhost'
|
||||
dbs: {}
|
||||
users: {}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{% for group in postgresql.allowed_hosts %}
|
||||
# {{ group }}
|
||||
{% for item in postgresql.allowed_hosts[group] %}
|
||||
{{ item.type | default('host') }} {{ item.database | default('all') }} {{ item.user | default('all') }} {{ item.auth | default('md5') }}
|
||||
{{ item.type | default('host') }} {{ item.database | default('all') }} {{ item.user | default('all') }} {{ item.source_net | default('all') }} {{ item.auth | default('md5') }}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue