Skip to content

Commit 322216c

Browse files
committed
Use official documentation for directives
1 parent 5920a57 commit 322216c

File tree

3 files changed

+4
-54
lines changed

3 files changed

+4
-54
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
buildroot/
22
work/
3-
dev-build.sh
3+
memory.log

README.md

+1-39
Original file line numberDiff line numberDiff line change
@@ -25,42 +25,4 @@ or
2525

2626
## Directives
2727

28-
### redirectionio
29-
30-
**syntax:** *redirectionio on|off*
31-
32-
**default:** *off*
33-
34-
**context:** *http, server, server if, location, location if*
35-
36-
Enable or disable redirectionio matching process for request matching the current context.
37-
38-
### redirectionio_pass
39-
40-
**syntax:** *redirectionio_pass ip:port|unix:///path*
41-
42-
**default:** *127.0.0.1:10301*
43-
44-
**context:** *http, server, server if, location, location if*
45-
46-
Specify the Agent backend for matching requests
47-
48-
### redirectionio_project_key
49-
50-
**syntax:** *redirectionio_project_key key*
51-
52-
**default:** *none*
53-
54-
**context:** *http, server, server if, location, location if*
55-
56-
Set the project key to use for request matching the current context.
57-
58-
### redirectionio_no_logs
59-
60-
**syntax:** *redirectionio_no_logs on|off*
61-
62-
**default:** *[value of redirectionio directive]*
63-
64-
**context:** *http, server, server if, location, location if*
65-
66-
Disable or reenable logs for the current matching context
28+
[See this documentation](https://redirection.io/documentation/developer-documentation/nginx-module#module-configuration-directives) for available directives

dev-build.sh

+2-14
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,11 @@
66
# the resulting nginx is located at ./work/nginx/sbin/nginx
77
root=`pwd`
88
version=${1:-1.9.15}
9-
home=~
10-
11-
# the ngx-build script is from https://github.com/openresty/openresty-devel-utils
12-
#--add-module=$home/work/nginx_upload_module-2.2.0 \
13-
#--without-pcre \
14-
#--without-http_rewrite_module \
15-
#--without-http_autoindex_module \
16-
#--with-cc=gcc46 \
17-
#--with-cc=clang \
18-
#--without-http_referer_module \
19-
#--with-http_spdy_module \
9+
module_directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
2010

2111
export NGX_BUILD_CC="gcc"
2212
export NGX_BUILD_JOBS=8
2313

24-
echo `pwd`
25-
2614
ngx-build $version \
2715
--with-cc-opt="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2" \
2816
--with-ld-opt="-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC" \
@@ -49,6 +37,6 @@ ngx-build $version \
4937
--with-http_xslt_module=dynamic \
5038
--with-mail=dynamic \
5139
--with-stream=dynamic \
52-
--add-module=/home/rio/clients/nginx-redirectionio-module \
40+
--add-module=$module_directory \
5341
$opts \
5442
--with-debug

0 commit comments

Comments
 (0)