D
Dave Johnson
Guest
- Thread Author
- #1
To host a Raspberry Pi web server on the Internet using ngrok, I guide readers through creating a simple Node.js web server with the http-server npm module and then making it accessible online. After setting up the server, I explain how to install ngrok to tunnel HTTP traffic from the local server to the public Internet, allowing access via a unique URL. Additionally, I introduce the ngrok-notify npm package to automate the process of sending the ngrok URL via email whenever the server restarts. Finally, I demonstrate how to use pm2 to ensure both the web server and ngrok tunnel run continuously, even after reboots, providing a robust solution for remote access.