I have 2 VMS and 1 static IP address
2.1. The first virtual machine with hosting, here is a static IP address
2.2. On the second one, I installed ubuntu server 18 and installed n8n according to the instructions. https://docs.n8n.io/#/server-setup
When I enter the internal IP on n8n, example: 192.168.0.101:5678 - everything opens correctly
Now I want to do nginx proxying to the n8n server (the second VM inside the network)
Still, a little bit confused about what exactly is happening but even if I would fully understand it, I would sadly still be unable to help you here. The reason is simple. Even though I would love to help you, I can sadly not as my Nginx knowledge is more than limited and the problem you are having seems to be Nginx-setup related.
I can just tell you that for me it also looks correct assuming that the IP is correct and what you posted is only part of your setup. So that you have above you also “server” defined with the ports like in this example:
If all that is the case I am sadly also lost. I would probably check with some Nginx people what they think could be going wrong.