roles/nginx: fix http2 syntax

This commit is contained in:
Alan Orth 2025-03-29 22:20:49 +03:00
parent 014f4d9502
commit f67ed7762c
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 6 additions and 4 deletions

View File

@ -13,8 +13,9 @@ server {
}
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
http2 on;
server_name _;
# self-signed "snakeoil" certificate

View File

@ -32,8 +32,9 @@ server {
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
root {{ document_root }};