Hardened non-root nginx Docker image with HTTP/3 (QUIC), HTTP/2, Brotli and post-quantum TLS.
1.2K
A small, hardened nginx image built from source: HTTP/1.1, HTTP/2 and HTTP/3 (QUIC) on the standard ports, running entirely as a non-root user.
docker run -d --name nginx \
-p 80:80/tcp -p 443:443/tcp -p 443:443/udp \
imzami/nginx:latest
Open https://localhost/. With no certificate mounted the image generates a self-signed one, so the browser will warn; see Certificates.
The same image, with the same tags, is published to two registries:
| Registry | Image |
|---|---|
| Docker Hub | imzami/nginx (docker.io/imzami/nginx) |
| GitHub Container Registry | ghcr.io/rtlbd/nginx |
| HTTP/1.1, HTTP/2, HTTP/3 | All three on every HTTPS site. HTTP/3 is advertised to browsers through the Alt-Svc header. |
| QUIC | UDP 443 with reuseport and generic segmentation offload (quic_gso). |
| TLS 1.2 and 1.3 only | Modern AEAD cipher suites; older protocols are refused. |
| Post-quantum key exchange | X25519MLKEM768 hybrid group is preferred, with classical fallbacks. |
| HTTP → HTTPS redirect | Port 80 answers with 308 to the same URL on HTTPS. |
docker pull imzami/nginx:latest