forked from google/ngx_token_binding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
124 lines (98 loc) · 3.49 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ngx_addon_name=ngx_token_binding
if [ -z "$ngx_module_link" ]; then
cat << END
$0: error: Token Binding module requires recent version of NGINX (1.9.11+).
END
exit 1
fi
#
# core module with Token Binding library
#
token_bind="$ngx_addon_dir/deps/token_bind"
if [ ! -f "$token_bind/token_bind_common.h" ]; then
cat << END
$0: error: \
Token Bind library is missing from the $token_bind directory.
Please make sure that the git submodule has been checked out:
cd $ngx_addon_dir && git submodule update --init && cd $PWD
END
exit 1
fi
ngx_module_type=CORE
ngx_module_name=ngx_token_binding_module
ngx_module_incs="$token_bind \
$ngx_addon_dir/src"
ngx_module_deps="$token_bind/tb_bytestring.h \
$token_bind/token_bind_common.h \
$token_bind/token_bind_server.h \
$ngx_addon_dir/src/ngx_token_binding_module.h"
ngx_module_srcs="$token_bind/cbb.c \
$token_bind/cbs.c \
$token_bind/token_bind_common.c \
$token_bind/token_bind_server.c \
$ngx_addon_dir/src/ngx_token_binding_module.c"
ngx_module_libs=
ngx_module_order=
. auto/module
USE_OPENSSL=YES
have=NGX_TOKEN_BINDING . auto/have
#
# HTTP module
#
if [ "$HTTP_SSL" != YES ]; then
cat << END
$0: error: Token Binding module requires HTTP SSL module.
Please build NGINX using --with-http_ssl_module configure option.
END
exit 1
fi
ngx_module_type=HTTP_FILTER
ngx_module_name=ngx_http_token_binding_module
ngx_module_incs=
ngx_module_deps=
ngx_module_srcs="$ngx_addon_dir/src/ngx_http_token_binding_module.c"
ngx_module_libs=
ngx_module_order="$ngx_module_name \
ngx_http_range_header_filter_module \
ngx_http_gzip_filter_module \
ngx_http_postpone_filter_module \
ngx_http_ssi_filter_module \
ngx_http_charset_filter_module \
ngx_http_xslt_filter_module \
ngx_http_image_filter_module \
ngx_http_sub_filter_module \
ngx_http_addition_filter_module \
ngx_http_gunzip_filter_module \
ngx_http_userid_filter_module \
ngx_http_headers_filter_module \
ngx_http_copy_filter_module \
ngx_http_range_body_filter_module \
ngx_http_not_modified_filter_module \
ngx_http_slice_filter_module"
. auto/module
if [ "$ngx_module_link" != DYNAMIC ]; then
# ngx_module_order doesn't work with static modules,
# so we must re-order filters here.
if [ "$HTTP_V2" = YES ]; then
next=ngx_http_v2_filter_module
else
next=ngx_http_chunked_filter_module
fi
HTTP_FILTER_MODULES=`echo $HTTP_FILTER_MODULES \
| sed "s/$ngx_module_name//" \
| sed "s/$next/$next $ngx_module_name/"`
fi
have=NGX_HTTP_TOKEN_BINDING . auto/have