Skip to content
Snippets Groups Projects
Commit f33d35ee authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Merge branch 'mattermost_websocket_proxying' into 'master'

Add websocket proxying to nginx config of mattermost.

Added websocket proxying to Nginx mattermost config according to the [official nginx doc](http://nginx.org/en/docs/http/websocket.html).

Fixes #740

See merge request !456
parents caafd1d9 0c6546c4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -8,6 +8,11 @@ upstream gitlab_mattermost {
server 127.0.0.1:<%= @service_port %>;
}
 
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
<% if @https && @redirect_http_to_https %>
server {
<% @listen_addresses.each do |listen_address| %>
Loading
Loading
@@ -63,6 +68,10 @@ server {
<% if @https %>
proxy_set_header X-Forwarded-Ssl on;
<% end %>
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://gitlab_mattermost;
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment