Skip to content

Commit 96c0bf6

Browse files
refactor: replace custom DH parameters with built-in 2048-bit DH param
Remove manual download of Mozilla DH parameters file and use HAProxy's built-in tune.ssl.default-dh-param setting for better maintainability
1 parent 1ed1d05 commit 96c0bf6

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

roles/haproxy_lb/tasks/main.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@
5353
src: files/{{ item }}.html
5454
dest: /etc/haproxy/errors/{{ item }}.http
5555
mode: "0644"
56-
- name: Download diffie-hellman parameters from mozilla
57-
ansible.builtin.get_url:
58-
url: https://ssl-config.mozilla.org/ffdhe2048.txt
59-
dest: /var/lib/dhparam
60-
mode: '0644'
61-
force: true
6256
- name: Set lb_hostvars equal to hostvars if not already set
6357
check_mode: false
6458
ansible.builtin.set_fact:

roles/haproxy_lb/templates/haproxy.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ global
2727
ssl-default-server-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
2828
ssl-default-server-options ssl-min-ver TLSv1.2 no-tls-tickets
2929

30-
ssl-dh-param-file /var/lib/dhparam
30+
tune.ssl.default-dh-param 2048
3131

3232
{% if haproxy_lb_quic_enabled | default(false) %}
3333
# QUIC DDoS protection: force Retry token exchange above threshold

0 commit comments

Comments
 (0)