I have a virtualized router with public IP address assigned to it directly in proxmox. When i send a request to port 443 from a different network(from a browser) the router correctly portforwards it to my NGINX container on a private IP.
Since the router performed a NAT on the packet from the public IP to a local 10.0.0.0/8 address how does NGINX know what the original client IP was? It reports my public IP correctly in access.log, but all the IP information it should be seeing would be the routers private IP, wouldnt it?
Also when I check the headers in my network tab on the client, there is no X-Forwarded-For header, also there is no other reverse proxy(that i know of) that would be adding the header, definitely not one with the correct SSL certs to be able to do that.
Thanks