Skip to content

Commit

Permalink
Update pgbouncer.ini.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 17, 2024
1 parent a9b8ed6 commit a641891
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions automation/roles/pgbouncer/templates/pgbouncer.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,22 @@ so_reuseport = 1
client_tls_sslmode = {{ pgbouncer_client_tls_sslmode }}
client_tls_key_file = {{ pgbouncer_client_tls_key_file }}
client_tls_cert_file = {{ pgbouncer_client_tls_cert_file }}
{% if pgbouncer_client_tls_ca_file | default('') | length > 0 %}
client_tls_ca_file = {{ pgbouncer_client_tls_ca_file }}
{% endif %}
client_tls_protocols = {{ pgbouncer_client_tls_protocols }}
client_tls_ciphers = {{ pgbouncer_client_tls_ciphers }}
{% endif %}
{% if pgbouncer_server_tls_sslmode != 'disable' %}
server_tls_sslmode = {{ pgbouncer_server_tls_sslmode }}
server_tls_protocols = {{ pgbouncer_server_tls_protocols }}
server_tls_ciphers = {{ pgbouncer_server_tls_ciphers }}
server_tls_cert_file = {{ pgbouncer_server_tls_cert_file }}
server_tls_key_file = {{ pgbouncer_server_tls_key_file }}
{% if pgbouncer_server_tls_ca_file | default('') | length > 0 %}
server_tls_ca_file = {{ pgbouncer_server_tls_ca_file }}
{% endif %}
{% endif %}
log_connections = 0
log_disconnections = 0

Expand Down

0 comments on commit a641891

Please sign in to comment.