The original post: /r/nginx by /u/No-Drawing-1508 on 2024-06-27 22:38:51.

Hi, I have a home server with casa os on it. I want to access some of the docker apps I have when im out, but forwarding the ports is very unsecure, so people recommended I use a reverse proxy. I installed Nginx to my casa os server and created a domain on freedns. Where I got confused is when I had to port forward ports 80 and 443 for it to work. I know theyre ports for http and https, but I dont get how thats important. I just did it on my router and added the domain to nginx with the ipv4 address of my server and the port for the docker component. And now it works. Im very new to it so im just curious how it works and what exactly its doing. How is it more secure than just port forwarding the ports for the docker apps im using? Thanks