File tree 2 files changed +22
-3
lines changed
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,16 @@ Installation:
13
13
You'll need to re-compile Nginx from source to include this module.
14
14
Modify your compile of Nginx by adding the following directive (modified to suit your path of course):
15
15
16
+ Static module (built-in nginx binary)
17
+
16
18
./configure --add-module=/absolute/path/to/nginx-hmac-secure-link
19
+
20
+ Dynamic nginx module ` ngx_http_hmac_secure_link_module.so ` module
21
+
22
+ ./configure --add-dynamic-module=/absolute/path/to/nginx-hmac-secure-link
23
+
24
+ Build Nginx
25
+
17
26
make
18
27
make install
19
28
Original file line number Diff line number Diff line change 1
1
ngx_addon_name=ngx_http_hmac_secure_link_module
2
- HTTP_MODULES="$HTTP_MODULES ngx_http_hmac_secure_link_module"
3
- NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_hmac_secure_link_module.c"
4
- CORE_LIBS="$CORE_LIBS -lssl"
2
+
3
+ if test -n "$ngx_module_link"; then
4
+ ngx_module_type=HTTP
5
+ ngx_module_name=ngx_http_hmac_secure_link_module
6
+ ngx_module_srcs="$ngx_addon_dir/ngx_http_hmac_secure_link_module.c"
7
+ ngx_module_libs="-lcrypto"
8
+
9
+ . auto/module
10
+ else
11
+ HTTP_MODULES="$HTTP_MODULES ngx_http_hmac_secure_link_module"
12
+ NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_hmac_secure_link_module.c"
13
+ CORE_LIBS="$CORE_LIBS -lcrypto"
14
+ fi
You can’t perform that action at this time.
0 commit comments