Skip to content

Commit e968888

Browse files
author
Felipe Zimmerle
committed
Adds first version of .travis.yml
1 parent 769e366 commit e968888

File tree

3 files changed

+51
-4
lines changed

3 files changed

+51
-4
lines changed

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
dist: trusty
2+
sudo: true
3+
4+
addons:
5+
apt:
6+
packages:
7+
- libyajl-dev
8+
- libgeoip-dev
9+
- liblmdb-dev
10+
11+
env:
12+
- VER_NGINX=1.11.10
13+
- VER_NGINX=1.10.3
14+
15+
before_script:
16+
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
17+
- sudo apt-get update -qq
18+
- git clone https://github.com/SpiderLabs/ModSecurity.git
19+
- cd ModSecurity
20+
- git checkout v3/master
21+
- git submodule init
22+
- git submodule update
23+
- ./build.sh
24+
- ./configure --without-lmdb
25+
- make
26+
- sudo make install
27+
- cd -
28+
- git clone https://github.com/SpiderLabs/ModSecurity-nginx.git
29+
- wget "http://nginx.org/download/nginx-${VER_NGINX}.tar.gz" && tar -xf "nginx-${VER_NGINX}.tar.gz"
30+
- cd "./nginx-${VER_NGINX}"
31+
- ./configure --add-module=../ModSecurity-nginx
32+
- make
33+
- sudo make install
34+
- cd -
35+
- export PATH=$PATH:/usr/local/nginx/sbin
36+
- wget http://hg.nginx.org/nginx-tests/archive/tip.tar.gz
37+
- tar xvzf tip.tar.gz
38+
- cd nginx-tests-*
39+
- cp ../ModSecurity-nginx/tests/* .
40+
- export TEST_NGINX_BINARY=/usr/local/nginx/sbin/nginx
41+
42+
script:
43+
- prove .

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Introduction
1+
2+
<img src="https://github.com/SpiderLabs/ModSecurity/raw/v3/master/others/modsec.png" width="50%">
3+
4+
[![Build Status](https://travis-ci.org/SpiderLabs/ModSecurity-nginx.svg?branch=master)](https://travis-ci.org/SpiderLabs/ModSecurity-nginx)
5+
[![](https://raw.githubusercontent.com/ZenHubIO/support/master/zenhub-badge.png)](https://zenhub.com)
6+
7+
28

39
The ModSecurity-nginx connector is the connection point between Nginx and libmodsecurity (ModSecurity v3). Said another way, this project provides a communication channel between Nginx and libmodsecurity. This connector is required to use LibModSecurity with Nginx.
410

@@ -14,8 +20,6 @@ Apache internals to link ModSecurity to nginx. This current version is closer
1420
to nginx, consuming the new libmodsecurity which is no longer dependent on
1521
Apache. As a result, This current version has less dependencies, fewer bugs, and is faster. In addition, Some new functionality is also provided - such as the possibility of use of global rules configuration with per directory/location customizations (e.g. SecRuleRemoveById).
1622

17-
NOTICE: libmodsecurity is not feature complete and it is not considerable
18-
stable, so use is undertaken at your own risk.
1923

2024
# Compilation
2125

tests/modsecurity-config-auditlog.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ http {
5656
modsecurity on;
5757
modsecurity_rules '
5858
SecRuleEngine On
59-
SecDebugLogEngine RelevantOnly
59+
SecAuditLogEngine On
6060
SecRule ARGS "@streq whee" "id:10,phase:2"
6161
SecRule ARGS "@streq whee" "id:11,phase:2"
6262
';

0 commit comments

Comments
 (0)