diff options
-rw-r--r-- | PKGBUILD | 1 | ||||
-rw-r--r-- | http3.conf | 17 |
2 files changed, 18 insertions, 0 deletions
@@ -109,4 +109,5 @@ package() { rmdir "$pkgdir"/run install -d "$pkgdir"/usr/share/man/man8/ gzip -9c man/nginx.8 > "$pkgdir"/usr/share/man/man8/nginx.8.gz + install -Dm644 ../http3.conf "$pkgdir"/etc/nginx/http3.conf.example } diff --git a/http3.conf b/http3.conf new file mode 100644 index 000000000000..f76037e921ae --- /dev/null +++ b/http3.conf @@ -0,0 +1,17 @@ +# EXAMPLE OF USING HTTP/3 +server { + # Enable QUIC and HTTP/3. + listen 443 quic reuseport; + + # Enable HTTP/2 (optional). + listen 443 ssl http2; + + ssl_certificate cert.crt; + ssl_certificate_key cert.key; + + # Enable all TLS versions (TLSv1.3 is required for QUIC). + ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; + + # Add Alt-Svc header to negotiate HTTP/3. + add_header alt-svc 'h3-23=":443"; ma=86400'; +} |