-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from theseion/merge-develop
chore: new release
- Loading branch information
Showing
6 changed files
with
47 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
ARG APACHE_VERSION=2.4.57 | ||
ARG APACHE_VERSION=2.4.58 | ||
|
||
FROM httpd:${APACHE_VERSION} as build | ||
|
||
ARG MODSEC_VERSION=2.9.7 | ||
ARG MODSEC_VERSION=2.9.7 \ | ||
LUA_VERSION=5.3 | ||
|
||
RUN set -eux; \ | ||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections; \ | ||
|
@@ -20,7 +21,7 @@ RUN set -eux; \ | |
libtool \ | ||
libxml2-dev \ | ||
libyajl-dev \ | ||
lua5.2-dev \ | ||
lua${LUA_VERSION}-dev \ | ||
make \ | ||
pkgconf \ | ||
wget | ||
|
@@ -57,7 +58,8 @@ RUN set -eux; \ | |
|
||
FROM httpd:${APACHE_VERSION} | ||
|
||
ARG MODSEC_VERSION=2.9.7 | ||
ARG MODSEC_VERSION=2.9.7 \ | ||
LUA_VERSION=5.3 | ||
|
||
LABEL maintainer="Felipe Zipitria <[email protected]>" | ||
|
||
|
@@ -161,6 +163,7 @@ RUN set -eux; \ | |
iproute2 \ | ||
libcurl3-gnutls \ | ||
libfuzzy2 \ | ||
liblua${LUA_VERSION} \ | ||
libxml2 \ | ||
libyajl2; \ | ||
update-ca-certificates -f; \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
ARG APACHE_VERSION=2.4.57 | ||
ARG APACHE_VERSION=2.4.58 | ||
|
||
FROM httpd:${APACHE_VERSION}-alpine as build | ||
|
||
ARG MODSEC_VERSION=2.9.7 | ||
ARG MODSEC_VERSION=2.9.7 \ | ||
LUA_VERSION=5.3 | ||
|
||
# see https://httpd.apache.org/docs/2.4/install.html#requirements | ||
RUN set -eux; \ | ||
|
@@ -27,8 +28,8 @@ RUN set -eux; \ | |
libtool \ | ||
lmdb-dev \ | ||
libxml2-dev \ | ||
lua${LUA_VERSION}-dev \ | ||
yajl-dev \ | ||
lua-dev \ | ||
make \ | ||
openssl \ | ||
openssl-dev \ | ||
|
@@ -67,7 +68,8 @@ RUN set -eux; \ | |
|
||
FROM httpd:${APACHE_VERSION}-alpine | ||
|
||
ARG MODSEC_VERSION=2.9.7 | ||
ARG MODSEC_VERSION=2.9.7 \ | ||
LUA_VERSION=5.3 | ||
|
||
LABEL maintainer="Felipe Zipitria <[email protected]>" | ||
|
||
|
@@ -109,6 +111,7 @@ ENV APACHE_ALWAYS_TLS_REDIRECT=off \ | |
MODSEC_RESP_BODY_LIMIT_ACTION="ProcessPartial" \ | ||
MODSEC_RESP_BODY_MIMETYPE="text/plain text/html text/xml" \ | ||
MODSEC_RULE_ENGINE=on \ | ||
MODSEC_SERVER_SIGNATURE="Apache" \ | ||
MODSEC_STATUS_ENGINE="Off" \ | ||
MODSEC_TAG=modsecurity \ | ||
MODSEC_TMP_DIR=/tmp/modsecurity/tmp \ | ||
|
@@ -128,6 +131,8 @@ ENV APACHE_ALWAYS_TLS_REDIRECT=off \ | |
REQ_HEADER_FORWARDED_PROTO='https' \ | ||
SERVER_ADMIN=root@localhost \ | ||
SERVER_NAME=localhost \ | ||
SERVER_SIGNATURE=Off \ | ||
SERVER_TOKENS=Full \ | ||
SSL_CIPHER_SUITE="ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384" \ | ||
SSL_ENGINE=on \ | ||
SSL_HONOR_CIPHER_ORDER=off \ | ||
|
@@ -166,14 +171,16 @@ RUN set -eux; \ | |
iproute2 \ | ||
libfuzzy2 \ | ||
libxml2 \ | ||
lua${LUA_VERSION} \ | ||
moreutils \ | ||
openssl \ | ||
sed \ | ||
tzdata \ | ||
yajl; \ | ||
ln -sv /opt/owasp-crs /etc/modsecurity.d/; \ | ||
sed -i -E 's|(Listen) [0-9]+|\1 ${PORT}|' /usr/local/apache2/conf/httpd.conf; \ | ||
sed -i -E 's|(ServerTokens) Full|\1 Prod|' /usr/local/apache2/conf/extra/httpd-default.conf; \ | ||
sed -i -E 's|(ServerTokens) Full|\1 ${SERVER_TOKENS}|' /usr/local/apache2/conf/extra/httpd-default.conf; \ | ||
sed -i -E 's|(ServerSignature) Off|\1 ${SERVER_SIGNATURE}|' /usr/local/apache2/conf/extra/httpd-default.conf; \ | ||
sed -i -E 's|#(ServerName) www.example.com:80|\1 ${SERVER_NAME}|' /usr/local/apache2/conf/httpd.conf; \ | ||
sed -i -E 's|(ServerAdmin) [email protected]|\1 ${SERVER_ADMIN}|' /usr/local/apache2/conf/httpd.conf; \ | ||
sed -i -E 's|^(\s*CustomLog)(\s+\S+)+|\1 ${ACCESSLOG} modsec "env=!nologging"|g' /usr/local/apache2/conf/httpd.conf; \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
ARG NGINX_VERSION="1.24.0" | ||
ARG NGINX_VERSION="1.25.3" | ||
|
||
FROM nginx:${NGINX_VERSION} as build | ||
|
||
ARG MODSEC_VERSION=3.0.11 \ | ||
LMDB_VERSION=0.9.29 | ||
LMDB_VERSION=0.9.29 \ | ||
LUA_VERSION=5.3 | ||
|
||
# Note: libpcre3-dev (PCRE 1) is required by the build description, | ||
# even though the build will use PCRE2. | ||
|
@@ -19,7 +20,7 @@ RUN set -eux; \ | |
libcurl4-gnutls-dev \ | ||
libfuzzy-dev \ | ||
libgeoip-dev \ | ||
liblua5.3-dev \ | ||
liblua${LUA_VERSION}-dev \ | ||
libpcre3-dev \ | ||
libpcre2-dev \ | ||
libtool \ | ||
|
@@ -96,7 +97,8 @@ RUN set -eux; \ | |
FROM nginx:${NGINX_VERSION} | ||
|
||
ARG MODSEC_VERSION=3.0.11 \ | ||
LMDB_VERSION=0.9.29 | ||
LMDB_VERSION=0.9.29 \ | ||
LUA_VERSION=5.3 | ||
|
||
LABEL maintainer="Felipe Zipitria <[email protected]>" | ||
|
||
|
@@ -190,7 +192,7 @@ RUN set -eux; \ | |
curl \ | ||
libcurl4-gnutls-dev \ | ||
libfuzzy2 \ | ||
liblua5.3 \ | ||
liblua${LUA_VERSION} \ | ||
libxml2 \ | ||
libyajl2 \ | ||
moreutils; \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
ARG NGINX_VERSION="1.24.0" | ||
ARG NGINX_VERSION="1.25.3" | ||
|
||
FROM nginx:${NGINX_VERSION}-alpine as build | ||
|
||
ARG MODSEC_VERSION=3.0.11 | ||
ARG MODSEC_VERSION=3.0.11 \ | ||
LUA_VERSION=5.3 | ||
|
||
# Note: pcre-dev (PCRE 1) is required by the build description, | ||
# even though the build will use PCRE2. | ||
|
@@ -25,6 +26,7 @@ RUN set -eux; \ | |
libxml2-dev \ | ||
linux-headers \ | ||
lmdb-dev \ | ||
lua${LUA_VERSION}-dev \ | ||
make \ | ||
openssl \ | ||
openssl-dev \ | ||
|
@@ -90,7 +92,8 @@ RUN set -eux; \ | |
|
||
FROM nginx:${NGINX_VERSION}-alpine | ||
|
||
ARG MODSEC_VERSION=3.0.11 | ||
ARG MODSEC_VERSION=3.0.11 \ | ||
LUA_VERSION=5.3 | ||
|
||
LABEL maintainer="Felipe Zipitria <[email protected]>" | ||
|
||
|
@@ -185,6 +188,7 @@ RUN set -eux; \ | |
libstdc++ \ | ||
libxml2-dev \ | ||
lmdb-dev \ | ||
lua${LUA_VERSION} \ | ||
moreutils \ | ||
openssl \ | ||
tzdata \ | ||
|