Skip to content

Commit

Permalink
Support a dynamic module with nginx
Browse files Browse the repository at this point in the history
feature: this module can now be built as a "dynamic module"  via the --add-dynamic-module=PATH option of ./configure.
  • Loading branch information
khavishbhundoo authored Mar 17, 2018
1 parent 48f1c8a commit 66eb0e1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@ USE_MD5=YES
USE_SHA1=YES
USE_OPENSSL=YES
ngx_addon_name=ngx_http_upload_module
HTTP_MODULES="$HTTP_MODULES ngx_http_upload_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upload_module.c"

if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_srcs="$ngx_addon_dir/ngx_http_upload_module.c"

. auto/module
else
HTTP_MODULES="$HTTP_MODULES ngx_http_upload_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upload_module.c"
fi

0 comments on commit 66eb0e1

Please sign in to comment.