https-portal icon indicating copy to clipboard operation
https-portal copied to clipboard

How to get X-Real-IP working with Digital Ocean?

Open dnordberg opened this issue 3 years ago • 1 comments

Have an issue with Digital Ocean in which I can't access X-Real-IP.

For reference,

https://stackoverflow.com/questions/51003905/how-to-get-real-ip-address-from-digital-ocean-load-balancer-nginx-node-scr https://www.digitalocean.com/community/questions/how-to-obtain-user-s-ip-address-when-using-private-ip-for-reverse-proxy https://www.digitalocean.com/community/questions/how-do-i-forward-client-ip-instead-of-proxy-ip-in-nginx-reverse-proxy

dnordberg avatar Apr 26 '22 23:04 dnordberg

Hi, I have been running my testing on DigitalOcean, and have no problem getting the real IP.

https://https-portal-test.steveltn.me/

To make it simpler, my application is just an "echo" which shows everything it gets. You can see the x-real-ip is the same as your computer's public IP.

SteveLTN avatar May 04 '22 06:05 SteveLTN