3
0

update postgresql.conf with SSL settings

This commit is contained in:
Arne Teuke
2025-09-28 13:48:29 +02:00
parent 27acabd48b
commit a6427523c6
2 changed files with 20 additions and 6 deletions

View File

@@ -95,11 +95,17 @@ max_connections = <%= @pl_max_conn %>
# - SSL -
#ssl = off
#ssl_ca_file = ''
#ssl_cert_file = 'server.crt'
<% if @pl_ssl_enabled == true -%>
ssl = on
ssl_ca_file = '<%= @pl_ca_crt -%>'
ssl_cert_file = '<%= @pl_server_crt -%>'
ssl_key_file = '<%= @pl_server_key -%>'
<% end -%>
<% if @pl_ssl_enabled != true -%>
ssl = off
<% end -%>
#ssl_crl_file = ''
#ssl_key_file = 'server.key'
#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
#ssl_prefer_server_ciphers = on
#ssl_ecdh_curve = 'prime256v1'