1- A few notes on Nginx configuration
1+ ## Nginx HTTP server configuration for Spreed WebRTC
22
3- In general Nginx with websocket support is required
4- (I am using Nginx 1.4). It should work with Nginx 1.3 too.
3+ In general Nginx with websocket support is required (Nginx >= 1.3).
54
6- Add the following to your Nginx server section:
5+ Add the following to your Nginx server section:
76
8- location / {
9- proxy_pass http://localhost:8090;
10- proxy_http_version 1.1;
11- proxy_set_header Upgrade $http_upgrade;
12- proxy_set_header Connection $connection_upgrade;
13- proxy_set_header X-Forwarded-Proto $scheme;
14- proxy_set_header Host $http_host;
15- proxy_set_header X-Real-IP $remote_addr;
16- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
17- }
7+ location / {
8+ proxy_pass http://localhost:8090;
9+ proxy_http_version 1.1;
10+ proxy_set_header Upgrade $http_upgrade;
11+ proxy_set_header Connection $connection_upgrade;
12+ proxy_set_header X-Forwarded-Proto $scheme;
13+ proxy_set_header Host $http_host;
14+ proxy_set_header X-Real-IP $remote_addr;
15+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16+ }
1817
19- This is using a map to provide the Upgrade and Connection
20- headers to the backend server. You need to add this map to
21- the http section of your server:
18+ This is using a map to provide the Upgrade and Connection
19+ headers to the backend server. You need to add this map to
20+ the http section of your server:
2221
23- map $http_upgrade $connection_upgrade {
24- default upgrade;
25- '' close;
26- }
22+ map $http_upgrade $connection_upgrade {
23+ default upgrade;
24+ '' close;
25+ }
2726
28- Also make sure that you have the general proxy configuration
29- like this in place:
27+ Also make sure that you have the general proxy configuration
28+ like this in place:
3029
3130 proxy_buffering on;
3231 proxy_ignore_client_abort off;
@@ -40,10 +39,10 @@ A few notes on Nginx configuration
4039 proxy_temp_file_write_size 64k;
4140 proxy_next_upstream error timeout invalid_header http_502 http_503 http_504;
4241
43- Thats it.
42+ And thats it.
4443
45- --
46- (c)2013 struktur AG
44+ --
45+ (c)2013 struktur AG
4746
4847
4948
0 commit comments