My setup consists of a public-facing VPS running NGINX, and a local machine running certain services. The VPS and the local machine are connected using WireGuard, and NGINX on the VPS is using WireGuard IPs to serve content from the services on the local machine. Some of the services on the local machine provide live video streaming and other features which rely on constant data streaming.
The local machine does not run NGINX, so the VPS is talking to the services on the local machine directly through WireGuard.
This is an extract from my NGINX configuration on the VPS:
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
...
proxy_pass (a service on local machine);
proxy_set_header Host $host;
proxy_redirect http:// https://;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
As far as I know, all of these settings are required for the services to work but I am open to experimenting with different settings.
My question is whether with this setup either the WireGuard IP or the public IP of the local machine could be revealed, and how could I do an in-depth test to make sure they don't.
Thanks in advance!