From 27e430b2f0cd41669a2043cc018548aab3cc3779 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Mon, 5 Mar 2018 00:07:59 +0700 Subject: [PATCH] Update config --- config | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config b/config index ff351b7..014e892 100644 --- a/config +++ b/config @@ -1,3 +1,11 @@ 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