2015-10-19 10:48:43 +02:00
|
|
|
{ fetchFromGitHub, pkgs }:
|
|
|
|
|
|
|
|
{
|
2016-01-21 22:14:39 +01:00
|
|
|
brotli = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "ngx_brotli";
|
|
|
|
rev = "788615eab7c5e0a984278113c55248305620df14";
|
|
|
|
sha256 = "02514bbjdhm9m38vljdh626d3c1783jxsxawv5c6bzblwmb8xgvf";
|
|
|
|
};
|
|
|
|
inputs = [ pkgs.libbrotli ];
|
|
|
|
};
|
|
|
|
|
2015-10-19 10:48:43 +02:00
|
|
|
rtmp = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arut";
|
|
|
|
repo = "nginx-rtmp-module";
|
2017-05-23 11:37:05 +02:00
|
|
|
rev = "v1.1.11";
|
|
|
|
sha256 = "09zrnf8lk179mpqnx92zm24xl7m3bq4ca84wc2zwi5hc8kxjbwxc";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
dav = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arut";
|
|
|
|
repo = "nginx-dav-ext-module";
|
2017-08-26 18:06:54 +02:00
|
|
|
rev = "v0.1.0";
|
|
|
|
sha256 = "1ifahd69vz715g3zim618jbmxb7kcmzykc696grskxm0svpy294k";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
inputs = [ pkgs.expat ];
|
|
|
|
};
|
|
|
|
|
|
|
|
moreheaders = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openresty";
|
|
|
|
repo = "headers-more-nginx-module";
|
|
|
|
rev = "v0.26";
|
|
|
|
sha256 = "01wkqhk8mk8jgmzi7jbzmg5kamffx3lmhj5yfwryvnvs6xqs74wn";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
echo = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openresty";
|
|
|
|
repo = "echo-nginx-module";
|
|
|
|
rev = "v0.57";
|
|
|
|
sha256 = "1q0f0zprcn0ypl2qh964cq186l3f40p0z7n7x22m8cxj367vf000";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
develkit = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simpl";
|
|
|
|
repo = "ngx_devel_kit";
|
2016-09-09 01:20:27 +02:00
|
|
|
rev = "v0.3.0";
|
|
|
|
sha256 = "1br1997zqsjcb1aqm6h6xmi5yx7akxk0qvk8wxc0fnvmyhgzxgx0";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
lua = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openresty";
|
|
|
|
repo = "lua-nginx-module";
|
2016-06-05 12:48:06 +02:00
|
|
|
rev = "v0.10.5";
|
|
|
|
sha256 = "0wz5j4kqa6hk7ar42bkxp0hd74psjy6sfsldh1a6p93z349iz4v5";
|
2015-10-19 10:48:43 +02:00
|
|
|
};
|
|
|
|
inputs = [ pkgs.luajit ];
|
|
|
|
preConfigure = ''
|
|
|
|
export LUAJIT_LIB="${pkgs.luajit}/lib"
|
|
|
|
export LUAJIT_INC="${pkgs.luajit}/include/luajit-2.0"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
set-misc = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openresty";
|
|
|
|
repo = "set-misc-nginx-module";
|
|
|
|
rev = "v0.28";
|
|
|
|
sha256 = "1vixj60q0liri7k5ax85grj7q9vvgybkx421bwphbhai5xrjip96";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fluentd = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fluent";
|
|
|
|
repo = "nginx-fluentd-module";
|
|
|
|
rev = "8af234043059c857be27879bc547c141eafd5c13";
|
|
|
|
sha256 = "1ycb5zd9sw60ra53jpak1m73zwrjikwhrrh9q6266h1mlyns7zxm";
|
|
|
|
};
|
|
|
|
};
|
2015-10-19 10:49:03 +02:00
|
|
|
|
|
|
|
pam = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stogh";
|
|
|
|
repo = "ngx_http_auth_pam_module";
|
|
|
|
rev = "v1.4";
|
|
|
|
sha256 = "068zwyrc1dji55rlaj2kx6n0v2n5rpj7nz26ipvz26ida712md35";
|
|
|
|
};
|
|
|
|
inputs = [ pkgs.pam ];
|
|
|
|
};
|
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";
|
2016-09-09 00:59:11 +02:00
|
|
|
rev = "2147d61dc31dd4865604be92349e6192a905d21a";
|
|
|
|
sha256 = "19s3kwjgf51jkwknh7cfi82p6kifl8rl146wxc3ijds12776ilsv";
|
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";
|
|
|
|
rev = "10782eaff51872a8f44e65eed89bbe286004bcb1";
|
|
|
|
sha256 = "0h98a8kiw2qkqfavysm1v16kf4cs4h39j583wapif4p0qx3bbm89";
|
|
|
|
};
|
|
|
|
};
|
2017-01-05 22:33:11 +01:00
|
|
|
|
|
|
|
# For an example usage, see https://easyengine.io/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/
|
|
|
|
fastcgi-cache-purge = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FRiCKLE";
|
|
|
|
repo = "ngx_cache_purge";
|
|
|
|
rev = "2.3";
|
|
|
|
sha256 = "0ib2jrbjwrhvmihhnzkp4w87fxssbbmmmj6lfdwpm6ni8p9g60dw";
|
|
|
|
};
|
|
|
|
};
|
2017-01-06 08:09:54 +01:00
|
|
|
|
|
|
|
pagespeed =
|
|
|
|
let
|
|
|
|
version = pkgs.psol.version;
|
|
|
|
|
|
|
|
moduleSrc = fetchFromGitHub {
|
|
|
|
owner = "pagespeed";
|
|
|
|
repo = "ngx_pagespeed";
|
|
|
|
rev = "v${version}-beta";
|
|
|
|
sha256 = "03dvzf1lgsjxcs1jjxq95n2rhgq0wy0f9ahvgascy0fak7qx4xj9";
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2017-05-01 23:07:47 +02:00
|
|
|
|
|
|
|
shibboleth = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nginx-shib";
|
|
|
|
repo = "nginx-http-shibboleth";
|
|
|
|
rev = "48b70d87bf7796d7813813a837e52b3a86e6f6f4";
|
|
|
|
sha256 = "0k8xcln5sf0m4r0m550dkhl07zhncp285dpysk6r4v6vqzqmhzdc";
|
|
|
|
};
|
|
|
|
};
|
2015-10-19 10:48:43 +02:00
|
|
|
}
|