Experiment With HTTP/3 Using NGINX And Quiche
Next you’ll need to apply the patch to NGINX:
% cd nginx-1.16.1 % patch -p01 < ../quiche/extras/nginx/nginx-1.16.patchAnd finally build NGINX with HTTP/3 support enabled:
% ./configure \ --prefix=$PWD \ --with-http_ssl_module \ --with-http_v2_module \ --with-http_v3_module \ --with-openssl=../quiche/deps/boringssl \ --with-quiche=../quiche % makeThe above command instructs the NGINX build system to enable the HTTP/3 support ( --with-http_v3_module) by using the quiche library found in the path it was previously downloaded into ( --with-quiche=../quiche), as well as TLS and HTTP/2. Additional build options can be added as needed.
You can check out the full instructions here.
Running
Once built, NGINX can be configured to accept incoming HTTP/3 connections by adding the quic and reuseport options to the listen configuration directive.
Here is a minimal configuration example that you can start from:
events { worker_connections 1024; } http { 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'; } }This will enable both HTTP/2 and HTTP/3 on the TCP/443 and UDP/443 ports respectively.
You can then use one of the available HTTP/3 clients (such as Chrome Canary, curl or even the example HTTP/3 client provided as part of quiche) to connect to your NGINX instance using HTTP/3.
We are excited to make this available for everyone to experiment and play with HTTP/3, but it’s important to note that the implementation is still experimental and it’s likely to have bugs as well as limitations in functionality. Feel free to submit a ticket to the quiche project if you run into problems or find any bug.
Từ khóa » H3-29 Nginx
-
Our Roadmap For QUIC And HTTP/3 Support In NGINX
-
Introducing A Technology Preview Of NGINX Support For QUIC And ...
-
Docker-nginx-http3/nf At Master - GitHub
-
NGINX With HTTP/3 / QUIC Support - CodeIT Technical Blog
-
Home README QUIC Test - Nginx Quic
-
Implementing HTTP3 QUIC Nginx - FAUN Publication
-
Support Http/3 Using Nginx Quic - Java知识
-
Nginx With HTTP3 Not Used In Browsers (fallback On HTTP/1.1)
-
QUIC Combat (1) Deploy NGINX Supporting HTTP3 Through Quiche
-
How To Install HTTP/3 Quic On Nginx Server For Ubuntu - CodeFAQ
-
AUR (en) - Nginx-quic - Arch Linux User Repository
-
使用nginx-quic支持HTTP/3 - 知乎专栏
-
Ranadeeppolavarapu/nginx-http3 - Docker Image | Docker Hub
-
What Is HTTP/3 - Lowdown On The Fast New UDP-Based Protocol