This question is not for business use - this is for personal use. Here is my situation. I run a Windows Server 2012 R2 with a domain. I am now adding Home Assistant running on a Raspberry Pi (and running Raspbian).
I am retired so we travel some. So I want to be able to log into the Home Assistant when we are away from home to monitor things. I have registered my own domain on Amazon Route 53, and have it set up so that it tracks my external IP address, just like DDNS programs such as DuckDNS would do. I initially set up port forwarding on my router to forward port 443 to the Pi and it all worked, so I know it is all set up correctly up to that point.
Unfortunately, I also have some other programs that require https access so I can't just leave it set up to do the port forwarding on my router.
All that said I am now trying to set up Nginx on the Windows Server. I have got that done, and I have it set up to run as a service. But I am struggling with 2 problems:
I can't get it to start, now that it is a service. it keeps giving an error 1067, which I think means there is a problem with the nginx.conf file. But I am not sure if there is actually a problem with the file, or if it does not find it because I don't have a path set up correctly for the service to know where the file is located. So how do I get that done correctly?
And then the second question is what would the nginx.conf file look like to get the Windows server to listen on port 443 and if it sees a call for my Home Assistant domain, it forwards to the Raspberry Pi, otherwise it just lets the 443 traffic go on to the PC that is trying to pass traffic on port 443?
I hope this all makes sense, and that I have explained it all correctly. I am into new territory for me and I am a little lost on what to do next.