How to connect Digital Ocean Droplet Ubuntu with n8n self host

does anyone know how to setup fully working n8n self hosting n8n thats secured from attacks, that saves the data and is actually functioning

I have a huge problem with localhost:5678. N8N just cant accept it, first i couldnt connect my google creds because in the OAuth url there was 5678. Now i cant use webhooks because in the url is 5678. Whatever i do it doesnt work

I used Digital Ocean Droplet Ubuntu, Git bash for SSH, and namecheap for domain

I tried to build it with gpt and i did build and setup all this:

  • VPS & OS
  • Docker & Docker Compose
  • n8n Directory & Files
  • SSH Hardening
  • UFW Firewall Setup
  • Basic Auth for n8n Editor
  • Encryption Key for Credentials
  • Docker Restart Policy
  • Custom Domain Setup
  • HTTPS/SSL
  • Reverse Proxy Path Routing
  • Backup System (Daily / Manual Ready)
  • Restore Drill (Disaster Recovery Test)
  • Resolved Issues
  • n8n Editor Basic Auth
  • Auto-Restart & Recovery
  • Backup System (Daily / Manual Ready)
  • Restore Drill
  • Correct Webhook Exposure
  • Docker Isolation
  • Reverse Proxy via NGINX
  • .env File Creation & Secrets Setup

But the whole time gpt lied to me and it didnt go as planned, so me as a guy who has done this for the first time, Im very confused and dont know what to fix and what to do overall in general. If anyone could help me setup self hosting n8n that is actually working and is secured and saving all the data and is actually good self hosted n8n, not like in yt vids where they set it up in 3 mins but its barely working. Please let me know i would be very grateful!

Hi there, i managed to setup n8n self host on digitalocean droplet using this documentation right here, it’s very straightforward

you just need to install some few things like caddy, docker-compose, etc.

all already explains in there, i think except for installing docker compose on droplet

you can follow this one

and everytime i faced some error, i just paste the erroe into chatGPT and everything just works

let me know if you need more help

this setup is good and definitely will work normally, because i’ve used it myself

but i dont think this one setup the restore drill, backup system, auto restart and recovery and other advance stuff

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.