Computers

How To Host a Public Website on Your Home Raspberry Pi

From time to time, I like to let the internet control things in my home. Sometimes it’s letting a live stream turn on and off a light and  others it’s driving a RC car around my living room. When building these projects, I normally use a Raspberry Pi to listen for web traffic and perform an event when someone visits the site.

I could give people my IP address and port forward my router to my Raspberry Pi, but I’d rather keep my IP private and my network as secure as possible. We can get the best of both worlds with a SSH tunnel, nginx, and a virtual machine in the cloud. All this creates a reverse proxy, where visitors hit a public IP address that’s not your home network’s and get directed to the Pi that’s on your LAN.


Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button