Sign inSign up

hackinit/nginx-brotli

By hackinit

•Updated over 7 years ago

Stable nginx with Google Brotli compression module, based on Alpine

Image
1

467

hackinit/nginx-brotli repository overview

⁠Docker Nginx

Dockerized Nginx based on Alpine Linux with TLS 1.3 and Brotli support.

Inspired by:

⁠How to use this image

docker pull hackinit/nginx-brotli
docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d hackinit/nginx-brotli

For extra information, please refer to the official Docker Hub Nginx documentation⁠, since this image builds upon it.

In addition, you can look for Brotli configurations at the upstream repository eustas/ngx_brotli⁠.

⁠Sample config

To enable TLS 1.3, add:

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers [TLS13+AESGCM+AES128|TLS13+AESGCM+AES256|TLS13+CHACHA20]:[EECDH+ECDSA+AESGCM+AES128|EECDH+ECDSA+CHACHA20]:EECDH+ECDSA+AESGCM+AES256:EECDH+ECDSA+AES128+SHA:EECDH+ECDSA+AES256+SHA:[EECDH+aRSA+AESGCM+AES128|EECDH+aRSA+CHACHA20]:EECDH+aRSA+AESGCM+AES256:EECDH+aRSA+AES128+SHA:EECDH+aRSA+AES256+SHA:RSA+AES128+SHA:RSA+AES256+SHA:RSA+3DES;

To enable Brotli, add this in http block:

brotli on;  
brotli_comp_level 6;  
brotli_buffers 16 8k;  
brotli_min_length 20;  
brotli_types *;

⁠Modification Details

Module ngx_brotli⁠ has been added for Brotli support.

⁠Manually build from source

git clone git://github.com/hackinit/docker-nginx.git
cd docker-nginx
docker build -t nginx-brotli:latest .

Tag summary

Content type

Image

Digest

Size

7.2 MB

Last updated

over 7 years ago

docker pull hackinit/nginx-brotli