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

Real_ip module not supported #796

Open
ryayon opened this issue Apr 5, 2016 · 3 comments
Open

Real_ip module not supported #796

ryayon opened this issue Apr 5, 2016 · 3 comments
Labels
enhancement New feature or request

Comments

@ryayon
Copy link

ryayon commented Apr 5, 2016

Hi,

As far as I can see, the real_ip module is not supported yet.

In the meantime, I use:

nginx::config::http_cfg_append:
  set_real_ip_from: X.X.X.X
  real_ip_header: X-Forwarded-For

in my Hiera file.

Rudy

@3flex 3flex added the enhancement New feature or request label Apr 10, 2016
@bernhardjt
Copy link

Hi,
as an workaround, you can make that for each vhost:

nginx::nginx_vhosts:
  'example.com':
    proxy: 'http://int.example.com'
    proxy_set_header: [ 'Host example.com', 'X-Real-IP $remote_addr', 'X-Forwarded-For $proxy_add_x_forwarded_for' ]
    raw_append: [ 'real_ip_header X-Forwarded-For;', 'set_real_ip_from 0.0.0.0/0;' ]

@luisbrandao
Copy link

Is this feature still unimplemented? we need it

@wyardley
Copy link
Collaborator

@luisbrandao is there a reason that just using http_cfg_append doesn't work for you?

If you're willing to write the changes (with tests), PRs are happily accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants