Tailscale-Nginx

Pre-requisites :

  1. one cloud vm
  2. Tailscale account

Step-by-step :

1. Local Device

  • Deploy a service locally
  • Add local device into tailscale

2. Cloud server

  • Register another Tailscale account
  • Install Tailscale here
  • Connect to Tailscales - CLI Reference
sudo tailscale up
  • Check whether device is connected to Tailscale
tailscale status
sudo service nginx restart
sudo certbot --nginx -d devtalk-26.malaysia-ai.org -d devtalk-26.malaysia-ai.org
  • Re-configure nginx configuration
  • Enable port 443 on lightsail firewall
  • Restart Nginx service