Skip to content

Commit

Permalink
Add mapping of upgrad variables to nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-battaglia committed Oct 19, 2023
1 parent 605345a commit 1faa505
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions angular-frontend/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;

# Connection header for WebSocket reverse proxy
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
}

server {
listen 80;
sendfile on;
Expand Down

0 comments on commit 1faa505

Please sign in to comment.