why every url i have on n8n is in http and not in https, cause i only need https so i cant use anything like elevelabs can anyone help how to change url from http to https i use it from docker?
I think using a reverse proxy should solve the problem. like nginx
server {
listen 443 ssl;
server_name ur-domain.de;
ssl_certificate /etc/letsencrypt/live/ur-domain.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ur-domain.de/privkey.pem;
location / {
proxy_pass http://localhost:5678; # n8n in Docker-Container Port 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;
}
}
Here you can get the certificates you need.
Set your environment correctly, so that https is used.
environment:
- N8N_HOST=ur-domain.de
- N8N_PROTOCOL=https
- WEBHOOK_URL=https://ur-domain.de/
Here a small example for you docker-compose.yml
services:
n8n:
image: n8nio/n8n
restart: always
ports:
- "5678:5678"
environment:
- N8N_HOST=ur-domain.de
- N8N_PROTOCOL=https
- WEBHOOK_URL=https://ur-domain.de/
# add more ENV-Vars here...
There’s no easier way to do this, and without it I would have to buy something else because it seems to work fine for everyone even with Docker.
Me I use a cloudflare tunnel, others I see use ngrok, did you just setup without SSL,
Happy to help get setup if you’d like.
I can provide a copy and paste dockers, for cloudflare easiest setup tbh. or help with ngrok if needed. This will provide the SSL https for you, and allow to connect to different apps,
otherwise id highly recommend the cloud version because this is all managed normally etc, so you just signin with ure account or API.