forked from fooinha/nginx-ssl-ja3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
40 lines (34 loc) · 1.21 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
ngx_addon_name=ngx_ssl_ja3_module
#
# Test for OpenSSL 1.1.1 with SSL_CTX_set_client_hello_cb
#
ngx_feature="SSL_CTX_set_client_hello_cb()"
ngx_feature_name="NGX_HAVE_OPENSSL_SSL_CLIENT_HELLO_CB"
ngx_feature_run=no
ngx_feature_incs="#include <openssl/ssl.h>"
ngx_feature_path=
ngx_feature_libs="-lssl $NGX_LD_OPT"
ngx_feature_test="SSL_CTX_set_client_hello_cb(0, 0, 0);"
. auto/feature
if [ $ngx_found = no ]; then
echo " ! incorrect OpenSSL version. use >= 1.1.1"
exit 1
fi
have=NGX_JA3 . auto/have
ngx_module_type=HTTP
ngx_module_name=ngx_http_ssl_ja3_module
ngx_module_incs=$ngx_addon_dir/src
ngx_module_srcs="$ngx_addon_dir/src/ngx_ssl_ja3.c $ngx_addon_dir/src/ngx_http_ssl_ja3_module.c"
. auto/module
#if [ "$STREAM" = "YES" ]; then
if [ -n "$STREAM" ]; then
echo " + ngx_ssl_ja3: stream support"
ngx_module_type=STREAM
ngx_module_name=ngx_stream_ssl_ja3_preread_module
ngx_module_incs=$ngx_addon_dir/src
ngx_module_srcs="$ngx_addon_dir/src/ngx_ssl_ja3.c $ngx_addon_dir/src/ngx_stream_ssl_ja3_preread_module.c"
# ngx_module_srcs="$ngx_addon_dir/src/ngx_stream_ssl_ja3_preread_module.c"
. auto/module
else
echo " + ngx_ssl_ja3: no stream support (run configure --with-stream to enable)"
fi