#################################################################################
# HTTP/3 (QUIC) Setup Instructions
# This is DOCUMENTATION, not a configuration file
#
# HTTP/3 provides:
# - Faster connection establishment (0-RTT handshake)
# - Better performance over poor/lossy networks
# - Connection migration (switch networks without dropping connection)
#
# Requirements:
# - nginx compiled with QUIC support (quic.patch)
# - OpenSSL 3.0+ with QUIC support (from deb.myguard.nl)
# - Kernel support for UDP (standard on most systems)
#################################################################################

Quick Setup Steps:

1. FIREWALL: Open UDP port 443 (QUIC)
   sudo ufw allow 443/udp  # UFW
   or appropriate rule for your firewall

2. ENABLE HTTP/3 in /etc/nginx/nginx.conf:
   http {
       http2 on;
       http3 on;  # Enable HTTP/3
   }

3. ADD QUIC LISTEN DIRECTIVE to your SSL server block:
   server {
       listen 443 ssl http2;
       listen 443 quic reuseport;  # HTTP/3 on QUIC

       # SSL certificates and configuration here
   }

4. ADVERTISE HTTP/3 AVAILABILITY to clients:
   Add in server block (or location /):
   add_header Alt-Svc 'h3=":443"; ma=86400' always;

5. VERIFY CONFIGURATION:
   nginx -t

6. RESTART NGINX:
   sudo systemctl restart nginx

7. TEST HTTP/3 SUPPORT:
   curl -I --http3-only https://your-domain.com

   Or use online tools:
   https://www.http3.net/ (online HTTP/3 checker)
   https://quic.tech/ (QUIC protocol test)

Notes:
- The nginx from deb.myguard.nl is pre-compiled with QUIC support
- OpenSSL3.0+ with QUIC is available from deb.myguard.nl
- Install both if not done automatically
- HTTP/3 is backward compatible; clients without QUIC support fall back to HTTP/2

See also:
- https://nginx.org/en/docs/http/ngx_http_v3_module.html
- https://quic.tech/

