To summarize a config that works on nginx for those who need while waiting for the doc
nano /etc/nginx/sites-available/cloud.example.com
server {
listen 443 ssl;
listen [::]:443 ssl;
}
server_name cloud.example.com;
location / {
proxy_pass http://localhost:5678;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}
...
If not done before:
ln -s /etc/nginx/sites-available/cloud.example.com /etc/nginx/sites-enabled/cloud.example.com
nano .bashrc
# n8n
N8N_HOST="cloud.example.com"
N8N_PROTOCOL="https"
N8N_PORT="443"
VUE_APP_URL_BASE_API="https://cloud.example.com/"
WEBHOOK_TUNNEL_URL="https://cloud.example.com/"
source ~/.profile
systemctl restart nginx.service
Then just run n8n and you can access it from https://cloud.example.com/