Set Up Your Own Cloud Instance with DigitalOcean & Custom

Antonio Blago
Antonio Blago
46 readers
Agent mode (Markdown)
AI summary
  • DigitalOcean cloud instances cost 5€ monthly versus 25€ for the smallest n8n hosted package, saving significant money.
  • Set up a DigitalOcean Droplet with Ubuntu 22.04 LTS, select 5 USD per month size, and configure DNS A records for domain access.
  • Enable automatic weekly backups in DigitalOcean Droplet settings and install monitoring tools like htop, Fail2Ban, and UFW firewall for security.
  • Connect to your server via SSH using your domain name after DNS propagation completes, typically within 24 hours.

Generated with AI, the details are in the article.

Table of contents

Tutorial

Why have your own cloud instance?

Having your own cloud instance gives you full control over your applications, whether it's a web server, an n8n automation, or a Docker host. You also don't have to pay per transaction or workflow, but only for the general server usage. So you save a lot of money. 5€ for your own instance vs. 25€ for the smallest package hosted on n8n. With DigitalOcean, you can set up a powerful and cost-effective instance in just a few minutes – including your own domain and subdomain. Get $200 credit via this link: DigitalOcean *

1. Buy a domain & prepare DNS

Buy a domain

& prepare DNS Before we start the cloud instance, we need a domain so we can reach our server via a readable address instead of an IP. If you already have a domain, you can skip this step. Buy a domain Register a domain with a provider such as: IONOS: Register domains at Ionos here GoDaddy: Go to GoDaddy here

Set up subdomain & set A record

After purchase, you can set up a subdomain that points to your DigitalOcean server: Go to the DNS management of your domain provider. Create an A record : Host: n8n (or another subdomain) Type: A Value: YOUR_DIGITALOCEAN_IPv4_ADDRESS If you want to support IPv6: Type: AAAA Value: YOUR_DIGITALOCEAN_IPv6_ADDRESS Wait a few minutes until DNS propagation is complete (can take up to 24 hours, but usually faster).

How visible is your brand in ChatGPT and friends?

The AI Check shows you within minutes whether and how AI assistants mention your brand.

Start AI Check

2. Create DigitalOcean Droplet

Now we set up the actual cloud instance (Droplet).

Create a new Droplet

Go to DigitalOcean * (You get $200 credit via this link) Create a new Droplet : Select Ubuntu 22.04 LTS as the operating system Choose a size (5 USD/month is enough for simple projects) Select the Frankfurt data center for EU proximity Add your SSH key or create a root password Start the Droplet and copy the IP address Follow the instructions, enter subdomain, domain, and IPv4 address Wait for installation and then you can access https://..de.

3. Test server access & domain connection

Once your Droplet is created, you can connect via SSH: ssh root@YOUR-DOMAIN.de If that doesn't work, test the connection to the direct IP: ssh root@YOUR_DIGITALOCEAN_IP If both work, your server is successfully linked to your domain!

To avoid data loss, you should enable automatic backups: Go to the DigitalOcean Droplet settings . Enable the backup function (created weekly). Alternatively, you can create your own backups with rsync or scp : rsync -avz /important-directory youruser@backup-server:/backup/

5. Set up monitoring & logs

For long-term monitoring, you should use a logging and monitoring tool: htop for system load: sudo apt install htop -y htop Fail2Ban against brute-force attacks: sudo apt install fail2ban -y sudo systemctl enable --now fail2ban Set up UFW (Uncomplicated Firewall): sudo ufw allow OpenSSH sudo ufw enable

Conclusion

In just a few steps, you have set up a complete cloud instance with your own domain and subdomain on DigitalOcean *. Your server is now ready for web applications, automations, or your own projects!

Free SEO tools

Keyword ranking, SSR text check, sitemap audit and more, right in the browser and without signup.

See SEO tools