]>
Commit | Line | Data |
---|---|---|
1 | server { | |
2 | listen 80; | |
3 | server_name domain.tld; | |
4 | ||
5 | location / { | |
6 | proxy_pass http://localhost:9000; | |
7 | proxy_set_header X-Real-IP $remote_addr; | |
8 | proxy_set_header Host $host; | |
9 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
10 | ||
11 | # For the video upload | |
12 | client_max_body_size 100m; | |
13 | } | |
14 | ||
15 | # Websocket tracker | |
16 | location /tracker/socket { | |
17 | # Peers send a message to the tracker every 15 minutes | |
18 | # Don't close the websocket before this time | |
19 | proxy_read_timeout 1200s; | |
20 | proxy_set_header Upgrade $http_upgrade; | |
21 | proxy_set_header Connection "upgrade"; | |
22 | proxy_http_version 1.1; | |
23 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
24 | proxy_set_header Host $host; | |
25 | proxy_pass http://localhost:9000; | |
26 | } | |
27 | } |