Getting real IP with MUP and SSL

I have asked this question on StackOverflow but I want to ask it again here, for the future references.

SSL with LetsEncrypt works great, big thanks to @arunoda and team.The challenge I’m having is that my $remote_addr is always

In other words, I have a feeling that because SSL is being terminated at STUD, it does not proxy IP address down to Nginx.

Any advice? I’m 5 minutes before going and using Nginx as my SSL termination point.

Solution is simple. STUD does not support IP forwarding. Switched to MUPX for deployment, which terminates SSL at Nginx level. Problem solved.