mattermost nginx regression
8.11 Regression on https://gitlab.com/gitlab-org/omnibus-gitlab/issues/740
[2016/08/23 19:02:17 UTC] [EROR] websocket connect err: websocket: could not find connection header with token 'upgrade'
[2016/08/23 19:02:17 UTC] [EROR] /api/v3/users/websocket:connect code=500 rid=f3rsnkyfdpyxiddom4wy8t975e uid=8z1d45uhotnuifu5pqb93gp5ca ip=10.7.61.51, 10.96.11.149 Failed to upgrade websocket connection [details: ]
Caused by a typo here: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/attributes/default.rb#L839 mattermost_nginx
vs mattermost-nginx
I'll throw up a MR right away here.
Workaround is to set the following in your gitlab.rb:
mattermost_nginx['proxy_set_headers'] = {
"Host" => "$http_host",
"X-Real-IP" => "$remote_addr",
"X-Forwarded-For" => "$proxy_add_x_forwarded_for",
"X-Forwarded-Proto" => "$scheme",
"X-Frame-Options" => "SAMEORIGIN",
"Upgrade" => "$http_upgrade",
"Connection" => "$connection_upgrade"
}
cc\ @farahfa