https://github.com/nwtgck/docker-nghttp2
Docker image of nghttpx with HTTP/3
https://github.com/nwtgck/docker-nghttp2
docker http3 nghttp2 nghttpx
Last synced: 6 months ago
JSON representation
Docker image of nghttpx with HTTP/3
- Host: GitHub
- URL: https://github.com/nwtgck/docker-nghttp2
- Owner: nwtgck
- License: mit
- Created: 2022-09-09T23:05:23.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-09T03:37:28.000Z (over 2 years ago)
- Last Synced: 2024-10-11T15:08:14.661Z (12 months ago)
- Topics: docker, http3, nghttp2, nghttpx
- Language: Dockerfile
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-nghttp2
[Available Docker tags](https://hub.docker.com/r/nwtgck/nghttp2/tags)
## Example
```bash
docker pull nwtgck/nghttp2
```The example below runs an HTTP/3 reverse proxy server on 8443 port forwarding to http://example.com.
```bash
# Create self-signed certificates
(mkdir ssl_certs && cd ssl_certs && openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -sha256 -nodes --subj '/CN=localhost/')# Run nghttpx for HTTP/3 https://localhost:8443 to http://example.com
docker run --rm -it -v $PWD/ssl_certs:/shared --privileged \
-p 8443:8443 \
-p 8443:8443/udp \
nwtgck/nghttp2 \
nghttpx /shared/server.key /shared/server.crt -f '*,8443' -f '*,8443;quic' -b 'example.com,80'
```Note that 8443 port is not available when using `--host=net` in `docker run` in Docker Desktop on Mac.