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

Log X-REAL-IP in openshift-auth-proxy #28

Open
ttindell2 opened this issue Jan 11, 2018 · 2 comments
Open

Log X-REAL-IP in openshift-auth-proxy #28

ttindell2 opened this issue Jan 11, 2018 · 2 comments

Comments

@ttindell2
Copy link
Contributor

ttindell2 commented Jan 11, 2018

Update morgan logger to log X-REAL-IP. This is useful in cases where proxy is sitting behind HAPROXY that is reencrypting the route:

app.use(morgan("req[X-REAL-IP] :remote-addr - :remote-user [:date[clf]] :method :url HTTP/:http-version :status :res[content-length] :referrer :user-agent")

@jcantrill
Copy link
Contributor

pull requests are welcome

ttindell2 added a commit to ttindell2/openshift-auth-proxy that referenced this issue May 1, 2018
@ttindell2
Copy link
Contributor Author

Pull Requested

jcantrill added a commit that referenced this issue May 1, 2018
#28 Make Morgan Logging Format a variable
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