From Cloudflare DNS SSL + NGINX to Tailscale
I used to have the following setup:
- a domain, let's say mydom.com
- Cloudflare resolving DNS names for my web services, say https://grafana.mydom.com.
- Containers on my server. None of them is exposing ports except nginx.
- nginx redirecting services, https://grafana.mydom.com to the container htpp://grafana:3000
- Cloudlfare providing the SSL certificate
- nginx being the ssl termination.
I moved to Tailscale, and without realizing it, I got rid of nginx and Cloudlfare:
- my containers are now exposing their ports to 127.0.0.1
- tailscale serve is configured to make the link between https://mymachine.tailnet.ts.net:3000 and http://127.0.0.1:3000
- tailscale managing ssl
- no need of Cloudlfare DNS, CF SSL, nginx
The only inconvenience is the domain name, from https://grafana.mydom.com to https://mymachine.tailnet.ts.net:3000, not very friendly name (if somebody has a hint to make it better, I'm all ears).
Security wise, do I miss something? I feel it was such an easy and smooth transition, I am afraid something is wrong.