front nova-novncproxy with nginx
In order to deal with firewire rules and potentially restrictive environments, I want to proxy connections into noVNC on tcp/6080 with nginx. From what I can tell, I've setup nginx to properly proxy websockets but noVNC is returning 'Server disconnected (code: 1006)'. I can connect directly to the service just fine directly on 6080.
Has anyone got this to work in their environment?
My nginx config, for reference:
location /console {
rewrite ^/console/(.*) /$1 break;
proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;
proxy_set_header x-real-ip $remote_addr;
proxy_set_header host $host;
proxy_set_header x-forwarded-proto http;
proxy_http_version 1.1;
proxy_read_timeout 86400;
proxy_pass http://127.0.0.1:6080;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
With the intention of connecting to "http://mydashboardhost/console/vnc_auto.html?token=[...]" (nova's novncproxy_base_url property is set accordingly and 'nova get-vnc-console' returns a proper URL.