summarylogtreecommitdiffstats
path: root/http3.conf
diff options
context:
space:
mode:
Diffstat (limited to 'http3.conf')
-rw-r--r--http3.conf17
1 files changed, 17 insertions, 0 deletions
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';
+}