How to pass the remote IP to a proxied service? - Nginx

Question!

I'm running a service in localhost at 127.0.01:8000

and I'm proxying this by using:

proxy_pass http://127.0.0.1:8000;

Problem is that I need to pass the user's IP address to the service.


Any ideas?



Answers


This video can help you solving your question :)
By: admin