agent
agent copied to clipboard
Websocket proxy in port mappings
Need to add these nginx directives to templates
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
to websocket proxying https://www.nginx.com/blog/websocket-nginx/ additional info can be found here
And how will that influence non-websocket connections?
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
As discussed internally better add these lines to all templates and should not hurt anything
Hello folks, I just hit this issue trying to understand why my deploy to subutai of Convos (http://convos.by/) that depends on WebSockets was failing to keep the connections up. But, these configurations didn't allow me to run it properly I had to add this line on the subutai-nginx configuration created by agent:
proxy_http_version 1.1
After search for a while (https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_http_version). As I read the docs referred, it states when http proxying the proxy is by default set to http 1.0. And that was the problem I was getting with this application. Thks all. :)
Good catch @marcoarthur. @etursunbaev was right. Perhaps the fix never made it out the door into production. Reopened to confirm fix.
@marcoarthur hi I pushed your fix to DEV branch. You can test with dev peer
Thanks @Dilshat ! Will setup a dev peer and give you feedback ASAP
@Dilshat sorry couldn't really test it yet, without a sandbox env by the moment.
@marcoarthur np , take your time !
@marcoarthur hey buddy Did you have a chance to test the issue?