Server Setup Cheat Sheet
Enter your IP and user type above — all commands update automatically. Add your domains below for auto-generated Nginx configs, SSL commands, and DNS records.
Connect to Server
SSH into your Droplet
ssh root@YOUR_IP
Update & Upgrade
Update all packages to latest versions
Reboot
Restart after major upgrades — wait 30 seconds then reconnect
Install Nginx
Web server to serve your sites
Install Certbot
SSL certificate tool (Let's Encrypt)
Firewall Setup
Run in this exact order — SSH first or you'll get locked out!
Security Hardening
SSH verify + auto updates + Fail2Ban
7.1 — Verify password login disabled:
7.2 — Auto security updates:
7.3 — Fail2Ban:
Block Direct IP Access
Create file: /etc/nginx/sites-available/00-block-ip
server {
listen 80 default_server;
server_name _;
return 444;
}Create Nginx Configs
Add your domains — configs, SSL commands, and DNS records generate automatically
Install SSL Certificates
Auto-generated from your domains above
After all SSL installed:
DNS A Records
Add these in your domain registrar
Quick Commands
Common commands you'll use often