소스 검색

Merge pull request #43 from PeterTonoli/dynamic-module

nginx-upload-progress-module can now be compiled as a dynamically loadable module
tags/v0.9.2
Brice Figureau 10 년 전
부모
커밋
37182ce2f3
1개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 10
    2
      config

+ 10
- 2
config 파일 보기

1
 ngx_addon_name=ngx_http_uploadprogress_module
1
 ngx_addon_name=ngx_http_uploadprogress_module
2
-HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_http_uploadprogress_module"
3
-NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_uploadprogress_module.c"
2
+if test -n "$ngx_module_link"; then
3
+    ngx_module_type=FILTER
4
+    ngx_module_name=ngx_http_uploadprogress_module
5
+    ngx_module_srcs="$ngx_addon_dir/ngx_http_uploadprogress_module.c"
6
+
7
+    . auto/module
8
+else
9
+    HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_http_uploadprogress_module"
10
+    NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_uploadprogress_module.c"
11
+fi

Loading…
취소
저장