Can I access n8n through a custom domain? IntroductionAfter installing n8n on your Virtual Private Server (VPS), you may want to access it using a custom domain instead of your server’s IP address. Using a custom domain not only makes your automation dashboard easier to access but also improves security, professionalism, and branding.In this article, you’ll learn how to access n8n through a custom domain, why it’s beneficial, and how to configure your domain for a secure VPS setup. For reliable VPS hosting to run n8n smoothly, check out BigCloudy plans.Why Use a Custom Domain for n8n?Accessing n8n at a URL like automation.yourdomain.com is far better than using a raw IP address. It enhances the user experience and provides strong security advantages.Benefits of Using a Custom DomainProfessional Access: Looks polished and credible for businesses and teams.Easier Management: Simple to remember and convenient for frequent access.Improved Security: Enables HTTPS using SSL certificates.Custom Branding: Aligns your automation platform with your brand identity.Requirements Before Setting Up a Custom Domain1. Running n8n InstanceYou should have n8n already installed and running on your VPS — via Node.js, PM2, or Docker.2. Registered Domain NameYou’ll need an active domain from a registrar like Namecheap, GoDaddy, or Google Domains.3. DNS AccessYou must be able to edit your domain’s DNS settings to point the domain to your VPS IP address.Step 1: Point Your Domain to the VPSTo connect your custom domain to your VPS, create a new A record in your DNS settings.Create an A Record:Type: AHost: automationValue: your_vps_ipTTL: Automatic or 3600Example:If your domain is example.com and your VPS IP is 192.168.1.100, then:automation.example.com → 192.168.1.100DNS propagation typically completes within minutes but may take up to 24 hours.Step 2: Install and Configure a Reverse Proxy (NGINX)To access n8n using your custom domain and secure it with HTTPS, you’ll need a reverse proxy like NGINX.Install NGINXsudo apt install nginx -yCreate a New NGINX Configuration Filesudo nano /etc/nginx/sites-available/n8n.confAdd the configuration:server { listen 80; server_name automation.example.com; location / { proxy_pass http://localhost:5678/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }}Enable the configuration:sudo ln -s /etc/nginx/sites-available/n8n.conf /etc/nginx/sites-enabled/sudo nginx -tsudo systemctl restart nginxVisit http://automation.example.com to verify your dashboard loads.Step 3: Secure n8n with HTTPS (SSL Certificate)To protect your login and workflow data, enable HTTPS using Let’s Encrypt.Install Certbotsudo apt install certbot python3-certbot-nginx -yGenerate and Apply SSL Certificatesudo certbot --nginx -d automation.example.comCertbot will automatically verify your domain, configure HTTPS, and set up auto-renewal.Visit your secure n8n domain: https://automation.example.comStep 4: Enable Basic Authentication (Optional)If Running n8n Directlyexport N8N_BASIC_AUTH_ACTIVE=trueexport N8N_BASIC_AUTH_USER=adminexport N8N_BASIC_AUTH_PASSWORD=securepasswordIf Using DockerAdd the following environment variables in your Docker Compose:environment: – N8N_BASIC_AUTH_ACTIVE=true – N8N_BASIC_AUTH_USER=admin – N8N_BASIC_AUTH_PASSWORD=securepasswordRestart n8n to apply changes.Step 5: Test and VerifyVisit:https://automation.example.comYou should see your secure n8n dashboard. If authentication is enabled, you’ll be prompted to log in.Troubleshooting TipsDNS Not Resolving? Use dnschecker.org to verify propagation.NGINX Issues? Check configuration with sudo nginx -t.Firewall Blocking? Ensure ports 80 and 443 are open:sudo ufw allow 80sudo ufw allow 443SSL Issues? Test certificate renewal:sudo certbot renew --dry-run ConclusionYes — you can absolutely access n8n through a custom domain on your VPS. By pointing your domain via DNS, configuring NGINX as a reverse proxy, and securing it with an SSL certificate, you can safely and professionally manage your automation dashboard from anywhere.Using a custom domain improves convenience, security, branding, and overall accessibility — making it the ideal setup for both personal use and enterprise automation environments. For reliable VPS hosting to run n8n, visit BigCloudy. Need Help? If you face any issues updating your nameservers or need further assistance, our support team is always available: Email: support@bigcloudy.com Submit a support ticket FAQ Can I use any domain registrar?Yes, as long as you can manage DNS records. Common registrars include Namecheap, GoDaddy, and Google Domains. Do I need NGINX to use a custom domain?Yes, NGINX acts as a reverse proxy to route traffic from your domain to n8n and enables HTTPS. Can I secure n8n without SSL?Technically yes, but using HTTPS is highly recommended to protect your data and login credentials. Can I access n8n from multiple devices?Yes, once your custom domain is configured and secured, you can access n8n from any device with internet access. Is basic authentication necessary?It’s optional but recommended for an extra layer of security on top of HTTPS.