mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
Fix Travis Build
This commit is contained in:
parent
64da67410a
commit
8ebc66cf60
3 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
1
travis/whitelist-domains.tpl.conf
Normal file
1
travis/whitelist-domains.tpl.conf
Normal file
|
@ -0,0 +1 @@
|
|||
"~*~*mydomain.com" 0;
|
1
travis/whitelist-ips.tpl.conf
Normal file
1
travis/whitelist-ips.tpl.conf
Normal file
|
@ -0,0 +1 @@
|
|||
127.0.0.1 0;
|
Loading…
Add table
Reference in a new issue