Configuring HTTP3 on nginx and NixOS
HTTP/3 is the latest version of the HTTP protocol, built on top of QUIC transport protocol. It offers improved performance, especially on unreliable networks, and better connection handling. In this post, I’ll show you how to enable HTTP/3 on NixOS using nginx.
Prerequisites
To use HTTP/3, you’ll need:
- NixOS (any recent version)
- A domain name
- SSL certificate (we’ll use Let’s Encrypt)
Firewall Configuration
First, we need to open the necessary ports. HTTP/3 uses UDP port 443 for QUIC, alongside the traditional TCP ports: