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

Per domain real_ip_header #308

Open
szymonpk opened this issue Jan 27, 2017 · 1 comment
Open

Per domain real_ip_header #308

szymonpk opened this issue Jan 27, 2017 · 1 comment

Comments

@szymonpk
Copy link

I'm not sure how good/bad idea this is, I'll describe my issue and maybe better solution will came up during discussion.

Configuration:

  • Workflow 2.10
  • EC2
  • TCP ELB with proxy protocol
  • Router deployment with router.deis.io/nginx.useProxyProtocol: true and proper router.deis.io/nginx.proxyRealIpCidrs.

Usually our request are running client -> elb -> workflow and it's working fine real ip is present in logs. However some domains (not even whole apps), are running through CloudFlare client -> cf -> elb -> workflow and here hell breaks loose :/ we're getting CF ip as remote address. So best option would be per domain real_ip_header, is it possible? Each domain is separate server block in nginx.conf, but is application/domain configuration available from nginx.conf template?

Maybe are there some workarounds? Switch to HTTP(S) LB is not an option.

@Cryptophobia
Copy link

This issue was moved to teamhephy/router#14

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

No branches or pull requests

2 participants