2018-07-21 02:44:44 +02:00
|
|
|
{ fetchFromGitHub, lib, pkgs }:
|
2015-10-19 10:48:43 +02:00
|
|
|
|
|
|
|
{
|
2016-01-21 22:14:39 +01:00
|
|
|
brotli = {
|
2018-02-13 22:24:12 +01:00
|
|
|
src = let gitsrc = pkgs.fetchFromGitHub {
|
|
|
|
owner = "eustas";
|
2016-01-21 22:14:39 +01:00
|
|
|
repo = "ngx_brotli";
|
2018-06-18 17:41:24 +02:00
|
|
|
rev = "v0.1.2";
|
|
|
|
sha256 = "19r9igxm4hrzrhxajlxw2ccq0057h8ipkfiif725x0xqbxjskl6c";
|
2018-02-13 22:24:12 +01:00
|
|
|
}; in pkgs.runCommandNoCC "ngx_brotli-src" {} ''
|
|
|
|
cp -a ${gitsrc} $out
|
|
|
|
substituteInPlace $out/config \
|
|
|
|
--replace /usr/local ${lib.getDev pkgs.brotli}
|
|
|
|
'';
|
|
|
|
inputs = [ pkgs.brotli ];
|
2016-01-21 22:14:39 +01:00
|
|
|
};
|
|
|
|
|
2018-07-16 00:36:57 +02:00
|
|
|
dav = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arut";
|
|
|
|
repo = "nginx-dav-ext-module";
|
|
|
|
rev = "v0.1.0";
|
|
|
|
sha256 = "1ifahd69vz715g3zim618jbmxb7kcmzykc696grskxm0svpy294k";
|
|
|
|
};
|
|
|
|
inputs = [ pkgs.expat ];
|
|
|
|
};
|
|
|
|
|
|
|
|
develkit = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simpl";
|
|
|
|
repo = "ngx_devel_kit";
|
|
|
|
rev = "v0.3.1rc1";
|
|
|
|
sha256 = "00vqvpx67qra2hr85hkvj1dha4h7x7v9sblw7w1df11nq1gzsdbb";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
echo = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openresty";
|
|
|
|
repo = "echo-nginx-module";
|
|
|
|
rev = "v0.61";
|
|
|
|
sha256 = "0brjhhphi94ms4gia7za0mfx0png4jbhvq6j0nzjwp537iyiy23k";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-07-15 19:07:34 +02:00
|
|
|
fancyindex = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aperezdc";
|
|
|
|
repo = "ngx-fancyindex";
|
|
|
|
rev = "v0.4.3";
|
|
|
|
sha256 = "12xdx6a76sfrq0yciylvyjlnvyczszpadn31jqya8c2dzdkyyx7f";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-07-16 00:36:57 +02:00
|
|
|
fastcgi-cache-purge = {
|
2018-05-13 17:31:54 +02:00
|
|
|
src = fetchFromGitHub {
|
2018-07-16 00:36:57 +02:00
|
|
|
owner = "FRiCKLE";
|
|
|
|
repo = "ngx_cache_purge";
|
|
|
|
rev = "2.3";
|
|
|
|
sha256 = "0ib2jrbjwrhvmihhnzkp4w87fxssbbmmmj6lfdwpm6ni8p9g60dw";
|
|
|
|
};
|
2018-05-13 17:31:54 +02:00
|
|
|
};
|
|
|
|
|
2018-07-16 00:36:57 +02:00
|
|
|
fluentd = {
|
2015-10-19 10:48:43 +02:00
|
|
|
src = fetchFromGitHub {
|
2018-07-16 00:36:57 +02:00
|
|
|
owner = "fluent";
|
|
|
|
repo = "nginx-fluentd-module";
|
|
|
|
rev = "8af234043059c857be27879bc547c141eafd5c13";
|
|
|
|
sha256 = "1ycb5zd9sw60ra53jpak1m73zwrjikwhrrh9q6266h1mlyns7zxm";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-07-16 00:36:57 +02:00
|
|
|
ipscrub = {
|
2015-10-19 10:48:43 +02:00
|
|
|
src = fetchFromGitHub {
|
2018-07-16 00:36:57 +02:00
|
|
|
owner = "masonicboom";
|
|
|
|
repo = "ipscrub";
|
|
|
|
rev = "v1.0.1";
|
|
|
|
sha256 = "0qcx15c8wbsmyz2hkmyy5yd7qn1n84kx9amaxnfxkpqi05vzm1zz";
|
|
|
|
} + "/ipscrub";
|
|
|
|
inputs = [ pkgs.libbsd ];
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
|
2018-07-16 00:36:57 +02:00
|
|
|
lua = {
|
2015-10-19 10:48:43 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openresty";
|
2018-07-16 00:36:57 +02:00
|
|
|
repo = "lua-nginx-module";
|
|
|
|
rev = "v0.10.13";
|
|
|
|
sha256 = "19mpc76lfhyyvkfs2n08b4rc9cf2v7rm8fskkf60hsdcf6qna822";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
2018-07-16 00:36:57 +02:00
|
|
|
inputs = [ pkgs.luajit ];
|
|
|
|
preConfigure = ''
|
|
|
|
export LUAJIT_LIB="${pkgs.luajit}/lib"
|
|
|
|
export LUAJIT_INC="${pkgs.luajit}/include/luajit-2.0"
|
|
|
|
'';
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
modsecurity = {
|
|
|
|
src = "${pkgs.modsecurity_standalone.nginx}/nginx/modsecurity";
|
|
|
|
inputs = [ pkgs.curl pkgs.apr pkgs.aprutil pkgs.apacheHttpd pkgs.yajl ];
|
|
|
|
preConfigure = ''
|
2016-04-16 18:41:43 +02:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pkgs.aprutil.dev}/include/apr-1 -I${pkgs.apacheHttpd.dev}/include -I${pkgs.apr.dev}/include/apr-1 -I${pkgs.yajl}/include"
|
2015-10-19 10:48:43 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2017-12-21 21:41:38 +01:00
|
|
|
modsecurity-nginx = {
|
2017-11-26 13:57:19 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SpiderLabs";
|
|
|
|
repo = "ModSecurity-nginx";
|
2017-12-21 21:41:38 +01:00
|
|
|
rev = "v1.0.0";
|
|
|
|
sha256 = "0zzpdqhbdqqy8kjkszv0mrq6136ah9v3zwr1jbh312j8izmzdyi7";
|
2017-11-26 13:57:19 +01:00
|
|
|
};
|
|
|
|
inputs = [ pkgs.curl pkgs.geoip pkgs.libmodsecurity pkgs.libxml2 pkgs.lmdb pkgs.yajl ];
|
|
|
|
};
|
|
|
|
|
2018-07-16 00:36:57 +02:00
|
|
|
moreheaders = {
|
2015-10-19 10:48:43 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openresty";
|
2018-07-16 00:36:57 +02:00
|
|
|
repo = "headers-more-nginx-module";
|
|
|
|
rev = "v0.33";
|
|
|
|
sha256 = "1cgdjylrdd69vlkwwmn018hrglzjwd83nqva1hrapgcfw12f7j53";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-07-16 00:36:57 +02:00
|
|
|
pagespeed =
|
|
|
|
let
|
|
|
|
version = pkgs.psol.version;
|
|
|
|
|
|
|
|
moduleSrc = fetchFromGitHub {
|
|
|
|
owner = "pagespeed";
|
|
|
|
repo = "ngx_pagespeed";
|
|
|
|
rev = "v${version}-stable";
|
|
|
|
sha256 = "0ry7vmkb2bx0sspl1kgjlrzzz6lbz07313ks2lr80rrdm2zb16wp";
|
|
|
|
};
|
|
|
|
|
|
|
|
ngx_pagespeed = pkgs.runCommand
|
|
|
|
"ngx_pagespeed"
|
|
|
|
{
|
|
|
|
meta = {
|
|
|
|
description = "PageSpeed module for Nginx";
|
|
|
|
homepage = "https://developers.google.com/speed/pagespeed/module/";
|
|
|
|
license = pkgs.stdenv.lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
''
|
|
|
|
cp -r "${moduleSrc}" "$out"
|
|
|
|
chmod -R +w "$out"
|
|
|
|
ln -s "${pkgs.psol}" "$out/psol"
|
|
|
|
'';
|
|
|
|
in {
|
|
|
|
src = ngx_pagespeed;
|
|
|
|
inputs = [ pkgs.zlib pkgs.libuuid ]; # psol deps
|
|
|
|
};
|
|
|
|
|
|
|
|
pam = {
|
2015-10-19 10:48:43 +02:00
|
|
|
src = fetchFromGitHub {
|
2018-07-16 00:36:57 +02:00
|
|
|
owner = "stogh";
|
|
|
|
repo = "ngx_http_auth_pam_module";
|
|
|
|
rev = "v1.5.1";
|
|
|
|
sha256 = "031q006bcv10dzxi3mzamqiyg14p48v0bzd5mrwz073pbf0ba2fl";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
2018-07-16 00:36:57 +02:00
|
|
|
inputs = [ pkgs.pam ];
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
|
2018-07-27 19:27:31 +02:00
|
|
|
push-stream ={
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wandenberg";
|
|
|
|
repo = "nginx-push-stream-module";
|
|
|
|
rev = "0.5.4";
|
|
|
|
sha256 = "0izn7lqrp2zfl738aqa9i8c5lba97wkhcnqg8qbw3ipp5cysb2hr";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-07-16 00:36:57 +02:00
|
|
|
rtmp ={
|
2015-10-19 10:48:43 +02:00
|
|
|
src = fetchFromGitHub {
|
2018-07-16 00:36:57 +02:00
|
|
|
owner = "arut";
|
|
|
|
repo = "nginx-rtmp-module";
|
|
|
|
rev = "v1.2.1";
|
|
|
|
sha256 = "0na1aam176irz6w148hnvamqy1ilbn4abhdzkva0yrm35a3ksbzn";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
set-misc = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openresty";
|
|
|
|
repo = "set-misc-nginx-module";
|
2018-07-15 21:10:48 +02:00
|
|
|
rev = "v0.32";
|
|
|
|
sha256 = "048a6jwinbjgxiprjj9ml3fdp0mhkx89g6ggams57fsx9m5vaxax";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-07-16 00:36:57 +02:00
|
|
|
shibboleth = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nginx-shib";
|
|
|
|
repo = "nginx-http-shibboleth";
|
|
|
|
rev = "48b70d87bf7796d7813813a837e52b3a86e6f6f4";
|
|
|
|
sha256 = "0k8xcln5sf0m4r0m550dkhl07zhncp285dpysk6r4v6vqzqmhzdc";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-07-15 22:29:57 +02:00
|
|
|
sla = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "goldenclone";
|
|
|
|
repo = "nginx-sla";
|
|
|
|
rev = "7778f0125974befbc83751d0e1cadb2dcea57601";
|
|
|
|
sha256 = "1x5hm6r0dkm02ffny8kjd7mmq8przyd9amg2qvy5700x6lb63pbs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-01-23 23:25:49 +01:00
|
|
|
statsd = {
|
|
|
|
src = fetchFromGitHub {
|
2016-09-09 00:59:11 +02:00
|
|
|
owner = "apcera";
|
2016-01-23 23:25:49 +01:00
|
|
|
repo = "nginx-statsd";
|
2018-07-15 21:19:32 +02:00
|
|
|
rev = "b970e40467a624ba710c9a5106879a0554413d15";
|
|
|
|
sha256 = "1x8j4i1i2ahrr7qvz03vkldgdjdxi6mx75mzkfizfcc8smr4salr";
|
2016-01-23 23:25:49 +01:00
|
|
|
};
|
|
|
|
};
|
2016-09-08 20:57:46 +02:00
|
|
|
|
|
|
|
upstream-check = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yaoweibin";
|
|
|
|
repo = "nginx_upstream_check_module";
|
2018-07-15 21:24:30 +02:00
|
|
|
rev = "9aecf15ec379fe98f62355c57b60c0bc83296f04";
|
|
|
|
sha256 = "1cjisxw1wykll683nw09k0i1nvzslp4dr59x58cvarpk43paim2y";
|
2016-09-08 20:57:46 +02:00
|
|
|
};
|
|
|
|
};
|
2018-07-27 19:05:20 +02:00
|
|
|
|
|
|
|
vts = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vozlt";
|
|
|
|
repo = "nginx-module-vts";
|
|
|
|
rev = "v0.1.18";
|
|
|
|
sha256 = "1jq2s9k7hah3b317hfn9y3g1q4g4x58k209psrfsqs718a9sw8c7";
|
|
|
|
};
|
|
|
|
};
|
2015-10-19 10:48:43 +02:00
|
|
|
}
|