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-24 18:23:25 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-24 18:23:25 +0100
commit4f93ccb6c25d80a75a6324c341a8105502a783b9 (patch)
treed6b2eeb95656e55a87b8b74b8cbfb1ae8ff1e346 /machines/srv1/modsecurity.nix
parenta8e9d5c3023c75894010401e1076391dc65ca085 (diff)
parenta572639f05ebb8d88cb8fe283785edd25aa1c49d (diff)
downloaddots-4f93ccb6c25d80a75a6324c341a8105502a783b9.tar.gz
dots-4f93ccb6c25d80a75a6324c341a8105502a783b9.zip
Merge branch 'master' of ssh://github.com/pniedzwiedzinski/dots
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 ];
+
+}
+