-
Notifications
You must be signed in to change notification settings - Fork 202
/
config
53 lines (45 loc) · 1.51 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
if [ -z "$ngx_module_link" ]; then
cat << END
$0: error: Weserv module requires recent version of NGINX (1.9.11+).
END
exit 1
fi
if [ $HTTP_SSL != YES ]; then
cat << END
$0: warning: NGINX configured without --with-http_ssl_module, SSL support is disabled within the Weserv module.
END
fi
ngx_addon_name=ngx_weserv_module
ngx_module_type=HTTP_AUX_FILTER
ngx_module_name=$ngx_addon_name
ngx_module_incs="$ngx_addon_dir/include"
ngx_module_deps=" \
$ngx_addon_dir/src/nginx/alloc.h \
$ngx_addon_dir/src/nginx/environment.h \
$ngx_addon_dir/src/nginx/error.h \
$ngx_addon_dir/src/nginx/handler.h \
$ngx_addon_dir/src/nginx/header.h \
$ngx_addon_dir/src/nginx/http.h \
$ngx_addon_dir/src/nginx/http_filter.h \
$ngx_addon_dir/src/nginx/http_request.h \
$ngx_addon_dir/src/nginx/module.h \
$ngx_addon_dir/src/nginx/stream.h \
$ngx_addon_dir/src/nginx/uri_parser.h \
$ngx_addon_dir/src/nginx/util.h \
"
ngx_module_srcs=" \
$ngx_addon_dir/src/nginx/environment.cpp \
$ngx_addon_dir/src/nginx/error.cpp \
$ngx_addon_dir/src/nginx/handler.cpp \
$ngx_addon_dir/src/nginx/header.cpp \
$ngx_addon_dir/src/nginx/http.cpp \
$ngx_addon_dir/src/nginx/http_filter.cpp \
$ngx_addon_dir/src/nginx/module.cpp \
$ngx_addon_dir/src/nginx/stream.cpp \
$ngx_addon_dir/src/nginx/uri_parser.cpp \
$ngx_addon_dir/src/nginx/util.cpp \
"
ngx_module_libs="-lstdc++ -L$ngx_addon_dir/lib -lweserv"
. auto/module
# Save our sources in a separate var since we may need it in config.make
WESERV_NGX_SRCS="$ngx_module_srcs"