-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig
23 lines (19 loc) · 883 Bytes
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ngx_addon_name="ngx_http_dynamic_upstream_lua_module ngx_stream_dynamic_upstream_lua_module"
HTTP_LUA_UPSTREAM_SRCS="$ngx_addon_dir/src/ngx_dynamic_upstream_lua.c \
$ngx_addon_dir/src/ngx_dynamic_upstream_lua_module.c \
$ngx_addon_dir/src/ngx_dynamic_upstream_stream_lua.c \
$ngx_addon_dir/src/ngx_dynamic_upstream_stream_lua_module.c"
stream_lua_nginx_module_incs="$(echo $CORE_INCS | awk '{
match($0, /([^ ]*\/stream-lua-nginx-module\/src)/, arr)
print arr[1]
}')"
CORE_INCS="$CORE_INCS $stream_lua_nginx_module_incs"
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_srcs="$HTTP_LUA_UPSTREAM_SRCS"
. auto/module
else
HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_LUA_UPSTREAM_SRCS"
fi