1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
From b157ed379c3c9c5c1846caa594d6733e88406863 Mon Sep 17 00:00:00 2001
From: Jeffrey Kriegsman <jeffrey@kriegsman.eu>
Date: Mon, 15 Feb 2016 15:36:21 +0100
Subject: [PATCH] Feature: nginx dynamic module support
Origin: https://github.com/yaoweibin/ngx_http_substitutions_filter_module/commit/b157ed379c3c9c5c1846caa594d6733e88406863
Forwarded: not-needed
---
config | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/config b/config
index fdb016c..f1de029 100644
--- a/config
+++ b/config
@@ -1,3 +1,15 @@
ngx_addon_name=ngx_http_subs_filter_module
-HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_subs_filter_module"
-NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_subs_filter_module.c"
+
+if test -n "$ngx_module_link"; then
+ ngx_module_type=HTTP_FILTER
+ ngx_module_name=ngx_http_subs_filter_module
+ ngx_module_incs=
+ ngx_module_deps=
+ ngx_module_srcs="$ngx_addon_dir/ngx_http_subs_filter_module.c"
+ ngx_module_libs=""
+
+ . auto/module
+else
+ HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_subs_filter_module"
+ NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_subs_filter_module.c"
+fi
--
2.30.2
|