Hi all,
I install n8n globaly with a nginx and tsl/ssl before. works nice but first test, just a SQL query on my Server. connection to the SQL Server success and i just type in SELECT * FROM ‘mytable’ LIMIT 1;
i get a Problem running workflow
Lost connection to the server
i search and find many hints for set variables in a config file. but i dont know, where the config files, what name the config files. all howtos are for Docker, but i not use 
thanks for help a newbi 
Hi, you need to configure the nginx to correctly pass websocket.
Reg
J.
1 Like
ok, goog point. i find Nginx configuration and also add the lines to the .bashrc of the User who run n8n
nothing change. in the log I see N8N_RUNNERS_ENABLED → Running n8n without task runners is deprecated.
so I set in the bashrc also N8N_RUNNERS_ENABLED=true
but after restarting this message still there. so I think my bashrc settings not effect. and still my workflow error
Got it to work!
i test around. for be sure, the variables are work, I add all in the /etc/environment
(if you test on console, you have to logout and login after change environment)
Nginx:
location / {
proxy_pass http://localhost:5678;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; # websocket support
proxy_set_header Connection "Upgrade"; # websocket support
proxy_set_header Host $host;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}
/etc/environment:
N8N_HOST="localhost"
N8N_PORT=5678
N8N_PROTOCOL="http"
WEBHOOK_TUNNEL_URL="https://n8n.xyz.xx/"
VUE_APP_URL_BASE_API="https://n8n.xyz.xx/"
N8N_RUNNERS_ENABLED=true

Thanx for help 
1 Like