I have a subdomain set up on my site that hosts a Flask application using nginx with the following server configuration. This is hosted on a droplet on DigitalOcean.
server {
listen 80;
server_name subdomain.mysite.com;
location / {
proxy_pass http://0.0.0.0:8080;
proxy_redirect http://0.0.0.0:8080 http://subdomain.mysite.com;
}
}
I am trying to obtain the visitor's IP within my application, but the IP address seems to be the same regardless of visitor. I'm not an expert in this area, so it would be great if someone could explain what was going on, and how I can obtain the real IP address of the visitor.