-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
host: opt: www: Made nginx bad bot blocker into a derivation that's e…
…xtensible with patches. This will allow patching in custom white/blacklists.
- Loading branch information
Showing
4 changed files
with
36 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
nginxBlacklist, | ||
}: | ||
stdenv.mkDerivation { | ||
pname = "nginx-ultimate-bad-bot-blocker"; | ||
version = "1"; | ||
|
||
src = nginxBlacklist; | ||
|
||
installPhase = '' | ||
mkdir -p "$out" | ||
cp -R *.d "$out/." | ||
''; | ||
|
||
meta = with lib; { | ||
description = "nginx ultimate bad bot blocker"; | ||
homepage = "https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker"; | ||
license = licenses.mit; | ||
platforms = with platforms; all; | ||
}; | ||
} |