Skip to content

Commit

Permalink
Use official documentation for directives
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwurtz committed Jan 9, 2019
1 parent 5920a57 commit 322216c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
buildroot/
work/
dev-build.sh
memory.log
40 changes: 1 addition & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,42 +25,4 @@ or

## Directives

### redirectionio

**syntax:** *redirectionio on|off*

**default:** *off*

**context:** *http, server, server if, location, location if*

Enable or disable redirectionio matching process for request matching the current context.

### redirectionio_pass

**syntax:** *redirectionio_pass ip:port|unix:///path*

**default:** *127.0.0.1:10301*

**context:** *http, server, server if, location, location if*

Specify the Agent backend for matching requests

### redirectionio_project_key

**syntax:** *redirectionio_project_key key*

**default:** *none*

**context:** *http, server, server if, location, location if*

Set the project key to use for request matching the current context.

### redirectionio_no_logs

**syntax:** *redirectionio_no_logs on|off*

**default:** *[value of redirectionio directive]*

**context:** *http, server, server if, location, location if*

Disable or reenable logs for the current matching context
[See this documentation](https://redirection.io/documentation/developer-documentation/nginx-module#module-configuration-directives) for available directives
16 changes: 2 additions & 14 deletions dev-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,11 @@
# the resulting nginx is located at ./work/nginx/sbin/nginx
root=`pwd`
version=${1:-1.9.15}
home=~

# the ngx-build script is from https://github.com/openresty/openresty-devel-utils
#--add-module=$home/work/nginx_upload_module-2.2.0 \
#--without-pcre \
#--without-http_rewrite_module \
#--without-http_autoindex_module \
#--with-cc=gcc46 \
#--with-cc=clang \
#--without-http_referer_module \
#--with-http_spdy_module \
module_directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

export NGX_BUILD_CC="gcc"
export NGX_BUILD_JOBS=8

echo `pwd`

ngx-build $version \
--with-cc-opt="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2" \
--with-ld-opt="-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC" \
Expand All @@ -49,6 +37,6 @@ ngx-build $version \
--with-http_xslt_module=dynamic \
--with-mail=dynamic \
--with-stream=dynamic \
--add-module=/home/rio/clients/nginx-redirectionio-module \
--add-module=$module_directory \
$opts \
--with-debug

0 comments on commit 322216c

Please sign in to comment.