Installation of Reverse Proxy for n8n with Nginx Proxy Manager
A Reverse Proxy is an essential part for a safe and professional operation of web applications like n8. It operates as intermediary between the Internet and your n8n instance, provides a HTTPS encryption and enables the access via easy to remember domain.
Requirements
- A functioning n8n instance that is internally available on your port (by default
5678). For maximum security, it should only listen on the localhost (for example with the port assignment127.0.0.1:5678:5678). - A public domain with a DNS-A-record, which points to the public IP address of your server.
- The ports 80 and 443 must be opened in their firewall.
Nginx Proxy Manager
1st step: Installation of NPM via Docker Compose
mkdir -p ~/npm && cd ~/npm nano docker-compose.yml
Add content:
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '81:81'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
Start the container:
docker compose up -d
2nd step: initial registration
Open the admin surface: http://<Ihre-Server-IP>:81
- Email:
admin@example.com/ Password:changeme
Change your login data immediately after the first login.
3rd step: Creation of Proxy Host for n8n 1. Navigate to Hosts -> Proxy Hosts -> Add Proxy Host. 2. In the tab Details:
* Domain Names:n8n.meinefirma.de* Scheme:http* Forward Hostname / IP: The internal IP address of your n8n server (for example the LAN-IP). * Forward Port:5678
3. In the tab SSL:
* Choose Request a new SSL Certificate. * Activate Force SSL.
4. Click on Save.
Hint: Corresponding port forwardings and domains must be available so that the domain can be reached externally. Author: Florian Müller
|
Translator: Alina Ranzinger Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.
|

