From 0e55c4df2352d15eec18c269973e79751ae8c717 Mon Sep 17 00:00:00 2001 From: hasufell Date: Fri, 5 Feb 2016 13:24:05 +0100 Subject: [PATCH] Add docker-nginx set --- hooks/ebuild_install_post/nginx.bash | 10 ++++++++++ sets/docker-nginx.conf | 1 + use.conf.d/docker-nginx.conf | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 hooks/ebuild_install_post/nginx.bash create mode 100644 sets/docker-nginx.conf create mode 100644 use.conf.d/docker-nginx.conf 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 +