I have n8n running on a hostinger server, basically self hosted. From my understanding that is currently the only thing I use the hostinger server for. How do I keep the server and n8n secure on there, because it has access to my gmail. What do I need to do generally, what on a weekly, monthly or yearly basis? Basically what is the best I can do. Its important to understand that I'm a beginner so if you tell me something then tell me exactly what I need to do e.g. where to click what commands to submit etc. And definitely only stuff where I cannot do anything wrong basiaclly so I dont run the risk of making the server less secure than it currently is
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
It's great that you’re thinking seriously about security—especially since your n8n instance has access to sensitive services like Gmail. You're self-hosting, which gives you a lot of control but also adds responsibility to keep everything safe.
This guide is written for beginners and only includes things that are safe, important, and relatively easy to do. I'll organize it into the following:
🌐 TL;DR Quick Checklist:
✅ Use HTTPS (SSL certificate)
✅ Enable authentication for n8n
✅ Keep n8n up to date
✅ Keep your server updated
✅ Take regular backups
✅ Use a firewall
✅ Use a strong password (or SSH key) for server access
✅ Never open ports you don’t use
✅ Monitor login/IP activity (I'll give you super simple tools)
⚙️ 1. Secure access to your n8n instance
✅ A. Use SSL (HTTPS)
Without HTTPS, anyone can see your data in transit!
If you're using Hostinger's web interface:
Go to your Hostinger dashboard.
Navigate to “Security > SSL”.
Enable SSL for your domain (if you haven’t already).
If you're using a custom domain (e.g., automations.mydomain.com), make sure it’s pointing correctly via DNS (a CNAME record at your domain registrar).
If you installed n8n manually and access it by IP or subdomain:
Use Caddy (the easiest web server with automatic HTTPS). I’ll write you a step-by-step to set that up if needed—just ask.
✅ B. Protect n8n with basic auth
By default, n8n doesn't require a login. Lock it down!
On your server, find your ~/.bashrc or wherever you're running n8n, and make sure you launch n8n with: