diff --git a/hooks/ebuild_install_post/nginx.bash b/hooks/ebuild_install_post/nginx.bash new file mode 100644 index 0000000..85ef11a --- /dev/null +++ b/hooks/ebuild_install_post/nginx.bash @@ -0,0 +1,10 @@ +#!/bin/bash + +if [[ ${CATEGORY}/${PN} == www-servers/nginx ]] ; then + if use nginx_modules_http_security ; then + insinto /etc/nginx/modsecurity + newins "${HTTP_SECURITY_MODULE_WD}"/modsecurity.conf-recommended \ + modsecurity.conf + doins "${HTTP_SECURITY_MODULE_WD}"/unicode.mapping + fi +fi diff --git a/sets/docker-nginx.conf b/sets/docker-nginx.conf new file mode 100644 index 0000000..45bfc9e --- /dev/null +++ b/sets/docker-nginx.conf @@ -0,0 +1 @@ +* www-servers/nginx:0 diff --git a/use.conf.d/docker-nginx.conf b/use.conf.d/docker-nginx.conf new file mode 100644 index 0000000..7fe0ad9 --- /dev/null +++ b/use.conf.d/docker-nginx.conf @@ -0,0 +1,3 @@ +www-servers/nginx http http-cache ipv6 pcre ssl +www-servers/nginx NGINX_MODULES_HTTP: access auth_basic auth_pam auth_request autoindex browser charset empty_gif dav dav_ext fastcgi geo gzip limit_req limit_conn map memcached perl proxy realip referer rewrite scgi security ssi spdy split_clients upstream_ip_hash userid uwsgi +