This module is simple and flexible [1]. I'm pushing it for the new
docker-registry auth, so I'm going to install it by default in my
Nginx image.
[1]: http://nginx.org/en/docs/http/ngx_http_auth_request_module.html
FROM ${NAMESPACE}/gentoo-syslog:${TAG}
MAINTAINER ${MAINTAINER}
#VOLUME ["${PORTAGE}:/usr/portage:ro", "${PORTAGE}/distfiles:/usr/portage/distfiles:rw"]
-RUN echo 'NGINX_MODULES_HTTP="access auth_basic autoindex charset fastcgi gzip gzip_static limit_req map proxy rewrite scgi ssi stub_status"' >> /etc/portage/make.conf
+RUN echo 'NGINX_MODULES_HTTP="access auth_basic auth_request autoindex charset fastcgi gzip gzip_static limit_req map proxy rewrite scgi ssi stub_status"' >> /etc/portage/make.conf
RUN echo 'NGINX_MODULES_MAIL=""' >> /etc/portage/make.conf
RUN emerge -v www-servers/nginx
RUN eselect news read new