https://github.com/spacewander/nginx-realip-plus-module
https://github.com/spacewander/nginx-realip-plus-module
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/spacewander/nginx-realip-plus-module
- Owner: spacewander
- License: apache-2.0
- Created: 2020-01-10T06:32:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T09:42:39.000Z (over 6 years ago)
- Last Synced: 2025-06-11T11:24:52.033Z (about 1 year ago)
- Language: C
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.