aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--support/nginx/peertube27
1 files changed, 27 insertions, 0 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
new file mode 100644
index 000000000..21939c360
--- /dev/null
+++ b/support/nginx/peertube
@@ -0,0 +1,27 @@
1server {
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}