Skip to content

Commit

Permalink
Dynamic module config
Browse files Browse the repository at this point in the history
  • Loading branch information
vrnagy committed May 23, 2016
1 parent 7ca820e commit 0e5f7c0
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions config
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# vim:ft=sh:
ngx_addon_name=ngx_http_fancyindex_module

# XXX: Insert fancyindex module *after* index module!
#
HTTP_MODULES=`echo "${HTTP_MODULES}" | sed -e \
's/ngx_http_index_module/ngx_http_fancyindex_module ngx_http_index_module/'`
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fancyindex_module.c"
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=ngx_http_fancyindex_module
ngx_module_srcs="$ngx_addon_dir/ngx_http_fancyindex_module.c"

if [ $HTTP_ADDITION != YES ] ; then
echo " - The 'addition' filter is needed for fancyindex_{header,footer}, but it was disabled"
. auto/module
else
# XXX: Insert fancyindex module *after* index module!
#
HTTP_MODULES=`echo "${HTTP_MODULES}" | sed -e \
's/ngx_http_index_module/ngx_http_fancyindex_module ngx_http_index_module/'`
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fancyindex_module.c"
if [ $HTTP_ADDITION != YES ] ; then
echo " - The 'addition' filter is needed for fancyindex_{header,footer}, but it was disabled"
fi
fi

0 comments on commit 0e5f7c0

Please sign in to comment.