Code. Break. Secure. My First Step to Self-Hosting

Mar 20, 2024 min read

Code. Break. Secure. Every project starts on localhost.

Mine stayed there for a long time β€” not because of lack of ideas, but because hosting is hard.

I wanted my services to be: ⚑ Accessible from anywhere 🌍 ⚑ Secure by design πŸ” ⚑ Cost-effective πŸ’Έ ⚑ Something I fully own and control

That’s where the real struggle began.

⚠️ The Hosting Dilemma

When I decided to move beyond localhost, I explored multiple paths:

1️⃣ Static IP from ISP

  • πŸ’Έ ~β‚Ή200/month
  • ⚑ Server running 24Γ—7
  • πŸ”‹ Not energy efficient, not scalable

2️⃣ AWS Free Tier

  • ☁️ Easy to start
  • 🧠 Strict CPU, RAM & usage limits
  • πŸ“‰ Not ideal for long-term learning or self-hosting

3️⃣ RackNerd VPS (My Choice)

  • πŸš€ Started with $10/year (700MB RAM)
  • πŸ“ˆ Upgraded to 4.5GB RAM for ~$40/year
  • 🎯 Affordable, stable & perfect for learning

This became my first real step from localhost to self-hosted.

πŸ› οΈ What I Built

Once hosting was solved, I focused on real-world services & best practices: πŸ”Ή Traefik – reverse proxy & TLS automation πŸ”Ή AdGuard Home – DNS over HTTPS (DoH) πŸ”Ή Personal Profile Website πŸ”Ή Self-hosted services secured behind VPN & HTTPS

This wasn’t just about hosting apps β€” it was about learning infrastructure, security, and deployment the right way.

🎯 Why This Matters

πŸ”Ή Localhost is where you learn πŸ”Ή Self-hosting is where you grow πŸ”Ή Security is where you level up

This journey helped me understand: βœ” Networking βœ” Reverse proxies βœ” DNS security βœ” Cloud vs on-prem tradeoffs βœ” Cost-optimized infrastructure

🌐 Personal Website: https://www.mkcyberlabs.in/ πŸ’» GitHub: https://github.com/MKCyberLabs

πŸ“Έ Screenshots of the Setup & Website

Personal Website Personal Website

Traefik Dashboard Traefik Reverse Proxy Dashboard

AdGuard Home Dashboard AdGuard Home Dashboard

QR Code Scan to visit MKCyberLabs

πŸ™ Learning Credits

Huge thanks to NetworkChuck, Christian Lempa, and A2D (Nandha) β€” your content played a big role in shaping my self-learning journey.

More services, automation & security experiments coming soon πŸš€

Code. Break. Secure.