From 8ebc66cf60f5aedeafc47a0cdd29bf42d51a1a96 Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Thu, 16 Feb 2017 09:04:23 +0200 Subject: [PATCH] Fix Travis Build --- travis/install-nginx.sh | 3 +++ travis/whitelist-domains.tpl.conf | 1 + travis/whitelist-ips.tpl.conf | 1 + 3 files changed, 5 insertions(+) create mode 100644 travis/whitelist-domains.tpl.conf create mode 100644 travis/whitelist-ips.tpl.conf diff --git a/travis/install-nginx.sh b/travis/install-nginx.sh index 83ada51f4..e4350ff95 100755 --- a/travis/install-nginx.sh +++ b/travis/install-nginx.sh @@ -31,6 +31,7 @@ function tpl { # Make some working directories. mkdir "$DIR/nginx" mkdir "$DIR/nginx/sites-enabled" +mkdir "$DIR/nginx/bots.d" mkdir "$DIR/var" # Configure the PHP handler. @@ -61,6 +62,8 @@ tpl "$DIR/nginx.tpl.conf" "$DIR/nginx/nginx.conf" tpl "$DIR/fastcgi.tpl.conf" "$DIR/nginx/fastcgi.conf" tpl "$DIR/ddos.tpl.conf" "$DIR/nginx/ddos.conf" tpl "$DIR/blockbots.tpl.conf" "$DIR/nginx/blockbots.conf" +tpl "$DIR/whitelist-ips.tpl.conf" "$DIR/nginx/bots.d/whitelist-ips.conf" +tpl "$DIR/whitelist-domains.tpl.conf" "$DIR/nginx/bots.d/whitelist-domains.conf" tpl "$DIR/globalblacklist.tpl.conf" "$DIR/nginx/globalblacklist.conf" tpl "$DIR/default-site.tpl.conf" "$DIR/nginx/sites-enabled/default-site.conf" diff --git a/travis/whitelist-domains.tpl.conf b/travis/whitelist-domains.tpl.conf new file mode 100644 index 000000000..59648a8a3 --- /dev/null +++ b/travis/whitelist-domains.tpl.conf @@ -0,0 +1 @@ +"~*~*mydomain.com" 0; \ No newline at end of file diff --git a/travis/whitelist-ips.tpl.conf b/travis/whitelist-ips.tpl.conf new file mode 100644 index 000000000..37fc5212e --- /dev/null +++ b/travis/whitelist-ips.tpl.conf @@ -0,0 +1 @@ +127.0.0.1 0; \ No newline at end of file