aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/postgresql/templates/pg_hba.conf4
-rw-r--r--modules/postgresql/templates/postgresql.conf3
2 files changed, 4 insertions, 3 deletions
diff --git a/modules/postgresql/templates/pg_hba.conf b/modules/postgresql/templates/pg_hba.conf
index fa53ba31..36d9004e 100644
--- a/modules/postgresql/templates/pg_hba.conf
+++ b/modules/postgresql/templates/pg_hba.conf
@@ -83,5 +83,5 @@ host all all 127.0.0.1/32 pam
# IPv6 local connections:
host all all ::1/128 pam
-host all all 0.0.0.0/0 pam
-host all all ::0/0 pam
+hostssl all all 0.0.0.0/0 pam
+hostssl all all ::0/0 pam
diff --git a/modules/postgresql/templates/postgresql.conf b/modules/postgresql/templates/postgresql.conf
index aee8261a..57c4b227 100644
--- a/modules/postgresql/templates/postgresql.conf
+++ b/modules/postgresql/templates/postgresql.conf
@@ -57,7 +57,7 @@
# - Connection Settings -
#listen_addresses = 'localhost' # what IP address(es) to listen on;
-listen_addresses = *
+listen_addresses = '*'
# comma-separated list of addresses;
# defaults to 'localhost', '*' = all
# (change requires restart)
@@ -80,6 +80,7 @@ bonjour_name = 'Magiea\'s Postgresql server'
#authentication_timeout = 1min # 1s-600s
#ssl = off # (change requires restart)
+ssl = on
#ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
# (change requires restart)
#ssl_renegotiation_limit = 512MB # amount of data between renegotiations