From 4be91d2cfd639832093629d96e869d1d7057f848 Mon Sep 17 00:00:00 2001 From: Cristian Balas Date: Tue, 20 Apr 2021 21:10:36 +0300 Subject: [PATCH] frontend nginx improvement (#185) Added websocket support for frontend->backend reverse proxy Removed buffering from frontend->backend reverse proxy Added python syntax in .editorconfig --- .editorconfig | 4 ++++ packages/frontend/nginx/nginx.conf | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.editorconfig b/.editorconfig index 435e72be69..9436458b5a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,7 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true spaces_around_brackets = both + +[*.py] +indent_style = space +indent_size = 4 diff --git a/packages/frontend/nginx/nginx.conf b/packages/frontend/nginx/nginx.conf index ea2f507e69..56d67c43ba 100644 --- a/packages/frontend/nginx/nginx.conf +++ b/packages/frontend/nginx/nginx.conf @@ -11,6 +11,11 @@ server { resolver 127.0.0.11 valid=30s; set $upstream_speckle_server speckle-server; proxy_pass http://$upstream_speckle_server:3000; + + proxy_buffering off; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; } error_page 500 502 503 504 /50x.html;