n8n reverse proxy problem

#1
I need to connect to my n8n Proxmox container from internet
I have an OLS reverse proxy which currently processes all internal web servers of Proxmox host. But not n8n.
It shows an error that websocket is compressed so cannot accept it after OLS. (workflow is not executed because of connection lost).
I have tried a plenty of configs using web app, rewrite rules, connect and websocket proxy - with no lack... n8n dashboard works, but workflows - don't.
Access to the n8n container thru http: with iptables rules works BUT without encryption.
Please help. It really critical for me.
 
#3
n8n needs a stable WebSocket connection, and OLS often breaks it due to compression. To fix:
  • In your n8n container set
N8N_PUSH_BACKEND=websocket
N8N_PUSH_BACKEND_WS_COMPRESSION=false

In OLS vhost, add WebSocket headers:

RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
ProxyPass ws://127.0.0.1:5678

This usually resolves the “compressed websocket” error and keeps workflows running. If issues persist, put Nginx in front of n8n just for WS handling.
 
Top