nginx: unoverride secure defaults

Both Alpine and Debian override default nginx ssl_protocols to enable
older TLS versions. Unoverride to return to secure nginx defaults.
This commit is contained in:
Timotej Lazar 2025-05-16 14:01:33 +02:00
parent bf4fd2c82d
commit f9f899fb2e

View file

@ -16,6 +16,13 @@
- certbot - certbot
- nginx - nginx
- name: Don’t enable old TLS versions
lineinfile:
path: /etc/nginx/nginx.conf
regex: '(\s+ssl_protocols\s.*)'
backrefs: yes
line: '#\1'
- name: Create HTTP server directories - name: Create HTTP server directories
file: file:
path: /srv/http/.well-known path: /srv/http/.well-known