Skip to content

Commit

Permalink
frontend nginx improvement (specklesystems#185)
Browse files Browse the repository at this point in the history
Added websocket support for frontend->backend reverse proxy
Removed buffering from frontend->backend reverse proxy
Added python syntax in .editorconfig
  • Loading branch information
cristi8 authored Apr 20, 2021
1 parent 26edc3a commit 4be91d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions packages/frontend/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4be91d2

Please sign in to comment.