An open API service indexing awesome lists of open source software.

https://github.com/spacewander/nginx-realip-plus-module


https://github.com/spacewander/nginx-realip-plus-module

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# nginx-realip-plus-module

This module provides extra feature based on official `http_realip_module`.

## installation

```bash
./configure ... \
--add-module=path/to/nginx-realip-plus-module \
--with-http_realip_module
```

The `--with-http_realip_module` is required to build this module.

## feature

Read `t/` to know how to use the new feature.

```lua
local realip = require "resty.realip"
assert(realip.disable_real_ip())
```

### disable_real_ip

**syntax:** `ok = realip.disable_real_ip()`
**context:** *init_worker_by_lua*

Disale `set_real_ip_from` directive globally.