From a48a9234ce4fc86238f99b10ab78b1053508612c Mon Sep 17 00:00:00 2001 From: Dennis Chen Date: Fri, 20 Mar 2015 01:31:03 -0700 Subject: [PATCH] Update NGINX Configuration --- server-ce/package/nginx/sharelatex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server-ce/package/nginx/sharelatex b/server-ce/package/nginx/sharelatex index f484240893..0e4fbd1c87 100644 --- a/server-ce/package/nginx/sharelatex +++ b/server-ce/package/nginx/sharelatex @@ -14,6 +14,18 @@ server { proxy_read_timeout 3m; proxy_send_timeout 3m; } + + location /socket.io { + proxy_pass http://localhost:3026; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $http_x_forwarded_host; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_read_timeout 3m; + proxy_send_timeout 3m; + } location /stylesheets { expires 1y;