This module provides extra feature based on official http_realip_module
.
./configure ... \
--add-module=path/to/nginx-realip-plus-module \
--with-http_realip_module
The --with-http_realip_module
is required to build this module.
Read t/
to know how to use the new feature.
local realip = require "resty.realip"
assert(realip.disable_real_ip())
syntax: ok = realip.disable_real_ip()
context: init_worker_by_lua
Disale set_real_ip_from
directive globally.