WIP - Still need templating of LDAP configuration
This repository was originally forked from https://github.com/nginx-modules/docker-nginx-libressl
Most of the build process has been reused from their image.
- Uses Alpine Linux as base
- PCRE with JIT enabled
- HTTP/2.0 (+NPN) support
- Async I/O using threads support
- Cloudflare Dynamic TLS records patch
- Brotli compression support
- ngx_headers_more module from OpenResty
- Cloudlare's HPACK patch for full HPACK header compression support.
- nginx-auth-ldap - LDAP Authentication module for nginx
Update 2018-01-19: I have removed the Cloudflare SPDY patch since it has now been deprecated by Cloudflare.
Update 2018-09-26: SPDY has been re-introduced thanks to the nginx mega patch
docker run --rm --name nginx -v ./htdocs:/var/www -p 80:80 -p 443:443 -d ajoergensen/nginx-libressl:tag
Available tags are stable
and mainline
PUID
: Change the uid of the user running nginxPGID
: Change the gid of the user running nginxCHOWN_WWWDIR
: Enable/disable the change of ownership of /var/www to $PUID:$PGID, defaults to TRUE. Note, if /var/www read only this variable will always be FALSEWORKER_PROCESSES
: Change the value of nginx worker_processes, defaults to auto.NGINX_CLIENT_MAX_BODY_SIZE
: Setclient_max_body_size
, default is 50M.SERVER_TOKENS
: Controlsserver_tokens
. Set toon
oroff
. Default isoff
CUSTOM_SERVER
: Sets theServer:
header to a custom value. Default is undefined.
Though not defined as a volume, I recommend mapping a folder to /etc/nginx/conf.d to store your vhost definitions.
This image works great with docker-gen and docker-letsencrypt-nginx-proxy-companion (as a drop-in replacement for the nginx-proxy image)
Originally based on the official nginx Dockerfile & Wonderfall/boring-nginx
- Forked from denji/nginx-libressl