Skip to content

Commit 37182ce

Browse files
author
Brice Figureau
committed
Merge pull request masterzen#43 from PeterTonoli/dynamic-module
nginx-upload-progress-module can now be compiled as a dynamically loadable module
2 parents 39e4d53 + ee8d5dd commit 37182ce

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

config

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
ngx_addon_name=ngx_http_uploadprogress_module
2-
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_http_uploadprogress_module"
3-
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_uploadprogress_module.c"
2+
if test -n "$ngx_module_link"; then
3+
ngx_module_type=FILTER
4+
ngx_module_name=ngx_http_uploadprogress_module
5+
ngx_module_srcs="$ngx_addon_dir/ngx_http_uploadprogress_module.c"
6+
7+
. auto/module
8+
else
9+
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_http_uploadprogress_module"
10+
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_uploadprogress_module.c"
11+
fi

0 commit comments

Comments
 (0)