Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Command for adding arbitrary headers #51

Closed
mngmntt opened this issue Aug 2, 2016 · 3 comments
Closed

Feature request: Command for adding arbitrary headers #51

mngmntt opened this issue Aug 2, 2016 · 3 comments
Milestone

Comments

@mngmntt
Copy link
Contributor

mngmntt commented Aug 2, 2016

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 or fastcgi_param.

For example:

tnt_pass_http_request on;
tnt_set_header X-GEO-COUNTRY $geoip_country_code;

This should add X-GEO-COUNTRY value to req.headers table.

@mngmntt mngmntt changed the title Command for adding arbitrary headers Feature request: Command for adding arbitrary headers Aug 2, 2016
@dedok
Copy link
Contributor

dedok commented Aug 2, 2016

@irqed Hi. Do you need this feature ASAP? Or I can schedule to the next release

@dedok dedok added this to the v2.4 milestone Jan 19, 2017
@Totktonada
Copy link
Member

Totktonada commented Jul 12, 2017

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.

@dedok
Copy link
Contributor

dedok commented Aug 17, 2017

in 1f05736

@dedok dedok closed this as completed Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants