Hello everyone,
Here's what I did to make it work perfectly! On a dedicated server
1- A domain name or subdomain to install n8n
2- Here are the environment variables I added:
N8N_PORT value 5678
N8N_HOST value --> the domain name
WEBHOOK_URL -->
https://xxxxx.com/
N8N_EDITOR_BASE_URL
https://same as before/
N8N_BASIC_AUTH_ACTIVE --> true
N8N_BASIC_AUTH_USER --> a super-long username with no connection to the content
N8N_BASIC_AUTH_PASSWORD --> a super-long passphrase
GENERIC_TIMEZONE Europe/Paris
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS true
N8N_RUNNERS_ENABLED true
3- What I added in the DNS section --> Apache and NGNIX
# Reverse proxy vers n8n en Docker
location / {
proxy_pass http://127.0.0.1:32779;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
}
In any case, it works perfectly
in Docker!
My next step:
Learn or discover how to update n8n
If you see an error, do not hesitate to come back to this topic, thank you all, thanks to you I grow, I learn and I move forward. THANK YOU VERY MUCH TO ALL!!!