Skip to content

Commit

Permalink
add dynamic module capability
Browse files Browse the repository at this point in the history
nginx-upstream-fair can now be compiled as a dynamic module

gnosek#21
  • Loading branch information
itoffshore committed Jan 1, 2017
1 parent 3df8e6b commit a92aa7a
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
@@ -1,3 +1,12 @@
ngx_addon_name=ngx_http_upstream_fair_module
HTTP_MODULES="$HTTP_MODULES ngx_http_upstream_fair_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upstream_fair_module.c"

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

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

0 comments on commit a92aa7a

Please sign in to comment.