Skip to content

Commit

Permalink
[nginx] Forward websocket upgrade requests to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
meissadia committed Oct 17, 2022
1 parent c5024d0 commit 50702fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ http {
try_files $uri =404;
}

# Pass Websocket Upgrade requests to the backend
location ~* /v2/filing/(.*)/progress$ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
}

# Whitelisted extensions
location ~* \.(html|css|js|json|png|jpg|svg|eot|ttf|woff|woff2|map|ico)$ {
limit_except GET {
Expand Down

0 comments on commit 50702fd

Please sign in to comment.