I for the life of me can not figure out how the hell to get this damn reverse proxy to work. I am trying to take a local ip (my portainer instance), https://192.168.1.195:9443 and make it so I can use homeserver.portainer as the address instead. I have adguard home, I have nginx, but I do not know how to add the right thing into adguard so it works with nginx. My nginx config in /etc/nginx/sites-available looks like this:

server{

listen 81;

server_name homeserver.portainer;

location / {

proxy_pass “https://192.168.1.195:9443”;

}

}

The ip for the nginx container is 192.168.1.199, and adguard home is on 192.168.1.195 but I do not know how to get nginx to communicate with it. If I put in 192.168.1.199, it takes me to portainer but I do not want that. As I said, I want it to route through homeserver.portainer. And I can’t find any coherent guide anywhere or a proper answer on reddit. It’s always an answer like, “put this thing there and then go put it there” like how tf is that gonna be helpful to anybody. Tell me exactly how to do it and where to go, please and thank you. (I am braindead when it comes to this stuff, so you gotta hold my hand, im a beginner)

Also, do I have to add the adguard ip to my dns settings in windows in order for all this to work as well? Or is that just for blocking the ads and stuff?