2021-09-18 10:59:09 +02:00
|
|
|
Dockerfile
|
|
|
|
==========
|
|
|
|
|
|
|
|
Dockerfile creates the applications bundled with nghttp2.
|
|
|
|
These applications are:
|
|
|
|
|
|
|
|
- nghttp
|
|
|
|
- nghttpd
|
|
|
|
- nghttpx
|
|
|
|
- h2load
|
|
|
|
|
|
|
|
HTTP/3 and eBPF features are enabled.
|
|
|
|
|
|
|
|
In order to run nghttpx with HTTP/3 endpoint, you need to run the
|
2022-02-23 08:46:56 +01:00
|
|
|
image with the escalated privilege. Here is the example command-line
|
|
|
|
to run nghttpx to listen to HTTP/3 on port 443, assuming that the
|
|
|
|
current directory contains a private key and a certificate in
|
|
|
|
server.key and server.crt respectively:
|
2021-09-18 10:59:09 +02:00
|
|
|
|
|
|
|
.. code-block:: text
|
|
|
|
|
2022-02-23 08:46:56 +01:00
|
|
|
$ docker run --rm -it -v /path/to/certs:/shared --net=host --privileged \
|
2021-09-24 11:01:47 +02:00
|
|
|
nghttp2 nghttpx \
|
2021-09-18 10:59:09 +02:00
|
|
|
/shared/server.key /shared/server.crt \
|
2022-02-23 08:46:56 +01:00
|
|
|
-f'*,443;quic'
|