I've set up a static website using an express application on an extra desktop, and it's currently accessible through my public IP address on port 8080. The app is only serving static files like HTML, CSS, GIFs, and MP4s. I want to switch to ports 80 and 443 for standard web traffic but I'm concerned about security. I've read that these ports are more frequently targeted for vulnerabilities, and I'm not well-versed in cyber security. What steps should I take to keep my site and network secure during this transition? I'm not using a reverse proxy yet, and I found it overwhelming trying to integrate Apache with my express setup.
1 Answer
If your site is purely static, have you thought about why you’re self-hosting it? You could easily move everything to a GitHub repo and host it for free on platforms like Netlify or GitHub Pages. This way, you'd avoid most security concerns.

I just wanted to try self-hosting for fun. It’s just a hobby project for me.