Skip to content

Commit

Permalink
Add WebSocket support to the sample nginx config (#13)
Browse files Browse the repository at this point in the history
Add WebSocket support for Nginx conf.
  • Loading branch information
MoseSchrute1975 authored Nov 8, 2024
1 parent 90ecf01 commit 3ef02a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/docs/how-to-guides/behind-nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# xray-core ws-path: /
Expand Down Expand Up @@ -57,6 +60,9 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
```

0 comments on commit 3ef02a9

Please sign in to comment.