diff options
author | KaMeHb-UA | 2019-10-21 19:02:42 +0300 |
---|---|---|
committer | KaMeHb-UA | 2019-10-21 19:02:42 +0300 |
commit | 2f271cb1bd158435de1000f654d146fe23f3558f (patch) | |
tree | af426dd1a8d3c02dc3d06fab2f0e0dee70c24d39 /http3.conf | |
parent | e12b7cfd193dfa77bc65a3e9f80b6bd16eed9f4c (diff) | |
download | aur-2f271cb1bd158435de1000f654d146fe23f3558f.tar.gz |
http3 config example
Diffstat (limited to 'http3.conf')
-rw-r--r-- | http3.conf | 17 |
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'; +} |