nginx: Update config to 1.26 format

This commit is contained in:
Timo Makinen 2025-06-12 20:02:40 +00:00
parent 171802608d
commit 6edf3b6608
2 changed files with 10 additions and 4 deletions

View file

@ -54,8 +54,11 @@ http {
ssl_prefer_server_ciphers off;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
http3 off;
server_name {{ inventory_hostname }};
ssl_certificate {{ tls_certs }}/{{ inventory_hostname }}-fullchain.crt;

View file

@ -14,8 +14,11 @@ upstream {{ nginx_site_name }} {
}
{% endif %}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
http3 off;
server_name {{ nginx_site_name }};
access_log {{ nginx_logdir }}/{{ nginx_site_name }}.access.log custom;