about summary refs log tree commit diff
path: root/machines/srv1/modsecurity.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-21 11:04:53 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-21 11:04:53 +0100
commita572639f05ebb8d88cb8fe283785edd25aa1c49d (patch)
tree1331819ff515b34c3ee088b0d8ea16d7f6cb95ec /machines/srv1/modsecurity.nix
parentbfe18514b8f4c2b9cd9e1ad9fb8507ca46e5f120 (diff)
downloaddots-a572639f05ebb8d88cb8fe283785edd25aa1c49d.tar.gz
dots-a572639f05ebb8d88cb8fe283785edd25aa1c49d.zip
Add modsecurity
Diffstat (limited to 'machines/srv1/modsecurity.nix')
-rw-r--r--machines/srv1/modsecurity.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/machines/srv1/modsecurity.nix b/machines/srv1/modsecurity.nix
new file mode 100644
index 0000000..85dd4d1
--- /dev/null
+++ b/machines/srv1/modsecurity.nix
@@ -0,0 +1,19 @@
+{ stdenv, fetchFromGitHub, libmodsecurity }:
+let
+  pname = "ModSecurity-nginx";
+  version = "1.0.1";
+in
+stdenv.mkDerivation {
+  inherit pname version;
+
+  src = fetchFromGitHub {
+    owner = "SpiderLabs";
+    repo = "ModSecurity-nginx";
+    rev = "v${version}";
+    sha256 = "sha256:0cbb3g3g4v6q5zc6an212ia5kjjad62bidnkm8b70i4qv1615pzf";
+  };
+
+  inputs = [ libmodsecurity ];
+
+}
+