Closed mngmntt closed 7 years ago
@irqed Hi. Do you need this feature ASAP? Or I can schedule to the next release
I would use proxy_set_headers
to pass client IP to a tarantool instance, like so:
proxy_set_header X-Real-IP $remote_addr;
UPD: now I use rewrite_by_lua
, so maybe more convenient way to me would be use ngx.req.set_header
.
in 1f057360b6a2425e31bd15fe890397e49687d748
Hello,
It would be nice to have a possibility to add a header before passing request to tnt. I don't think it should work any different from
proxy_set_header
orfastcgi_param
.For example:
This should add X-GEO-COUNTRY value to req.headers table.