Self-hosting this website
I built this portfolio and host it myself on an Asustor NAS at home, using a custom domain and a Cloudflare Tunnel instead of traditional port forwarding.
What I built
- Two Docker containers deployed as a Portainer stack: nginx to serve the site and cloudflared to connect it to Cloudflare
- DNS and HTTPS handled through Cloudflare, with HTTPS enforced and a modern TLS minimum
- The web container mounts the site folder read-only and publishes no ports at all
Problem I solved
After the tunnel came up, the site returned 403 Forbidden. I worked through it methodically: confirmed the tunnel and DNS were fine (the error came from nginx, not Cloudflare), then checked the container's view of the folder, file names and permissions to find the cause.
Why it matters
It's a small-scale version of real-world practice: reduce the attack surface, apply least privilege and keep the home network hidden.