diff --git a/README.md b/README.md index 15e0a81..0df7809 100644 --- a/README.md +++ b/README.md @@ -46,4 +46,12 @@ Sent QUIC client Initial, ALPN: h3-25h3-24h3-23 > < HTTP/3 200 HTTP/3 200 -``` \ No newline at end of file +``` + +### Demo + +- Site: http3.yurets.pro + +- Online test: [http3check](https://www.http3check.net/?host=http3.yurets.pro) + +- Shell: `docker run -it --rm ymuski/curl-http3 curl -ILv https://http3.yurets.pro/ --http3` diff --git a/example.nginx.conf b/example.nginx.conf index e334298..320b4b1 100644 --- a/example.nginx.conf +++ b/example.nginx.conf @@ -20,7 +20,7 @@ http { 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'; + add_header alt-svc 'h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400'; return 301 https://$host$request_uri; @@ -51,7 +51,7 @@ http { } # 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'; + add_header alt-svc 'h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400'; location / { root html; @@ -61,6 +61,8 @@ http { location /host { return 200 "http3 on $hostname"; add_header Content-Type text/plain; + # 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, h3=":443"; ma=86400'; } }