From 3822de0ec44f18faeb47e3ea59e6a8a31641ba6d Mon Sep 17 00:00:00 2001 From: yurymuski Date: Thu, 25 Mar 2021 18:34:15 +0300 Subject: [PATCH] example update --- example.nginx.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/example.nginx.conf b/example.nginx.conf index 3406d8e..0265c12 100644 --- a/example.nginx.conf +++ b/example.nginx.conf @@ -15,6 +15,17 @@ http { gzip_vary on; gzip_proxied any; + server { + listen 80; + server_name your_domain; + + # Add Alt-Svc header to negotiate HTTP/3. + add_header alt-svc 'h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400'; + + return 301 https://$host$request_uri; + + } + server { # https://github.com/cloudflare/quiche/tree/master/extras/nginx # Enable QUIC and HTTP/3. @@ -40,7 +51,7 @@ http { } # Add Alt-Svc header to negotiate HTTP/3. - add_header alt-svc 'h3-29=":443"; ma=86400'; + add_header alt-svc 'h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400'; location / { root html;