Skip to content

Commit

Permalink
added for socket io behind reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattslaney committed Jul 11, 2024
1 parent 7e517fb commit 51776e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nginx/webrtc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ server {
ssl_certificate_key /etc/ssl/key.pem;

location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;

proxy_pass http://127.0.0.1:3000/;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}

0 comments on commit 51776e8

Please sign in to comment.