I run a little HomeLab setup using Proxmox as my baremetal, with a couple of Containers and VM's running. Also in reading things, I started experimenting with Docker's by setting up Proxmox VM with Alpine Linux, with the dockers inside that VM.
Now I'm trying to learn and understand more about Nginx and setting up a reverse proxy so that I can access things from outside my home better without having to rely on a VPN connection.
My basic understanding (and please correct me if I am wrong) of Nginx is.
All incoming web traffic on port 80 gets directed to your Nginx server. So I would need to port forward on router port 80 to the Nginx container or VM.
Nginx will then look at the url of that request and then direct it to the correct VM or container IP address?
so if I have subdomain1.myipaddress.com. Then Nginx would route that to the correct VM/container/docker?
And then similar for subdomain2.myaddress.com
Assuming I understand that correctly. I do see their is a turnkey template for Nginx. Would it best to use that in a Container? I also now have the docker running under Alpine Linux. So I could also install an Nginx docker. But think that would possibly be making it more complex than is necessary?
Am I on the right track?
Now I'm trying to learn and understand more about Nginx and setting up a reverse proxy so that I can access things from outside my home better without having to rely on a VPN connection.
My basic understanding (and please correct me if I am wrong) of Nginx is.
All incoming web traffic on port 80 gets directed to your Nginx server. So I would need to port forward on router port 80 to the Nginx container or VM.
Nginx will then look at the url of that request and then direct it to the correct VM or container IP address?
so if I have subdomain1.myipaddress.com. Then Nginx would route that to the correct VM/container/docker?
And then similar for subdomain2.myaddress.com
Assuming I understand that correctly. I do see their is a turnkey template for Nginx. Would it best to use that in a Container? I also now have the docker running under Alpine Linux. So I could also install an Nginx docker. But think that would possibly be making it more complex than is necessary?
Am I on the right track?