aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-03 15:56:40 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-03 15:56:40 +0200
commit5d4e9411005059c775e1b1ccd85100cd9484aedc (patch)
tree2ff454953d46f083abe1b5c2c92a4de98c2faa64 /support/nginx
parent40d5da636f6ca0ad947db9e3cfc6f3ad3fa1be91 (diff)
downloadPeerTube-5d4e9411005059c775e1b1ccd85100cd9484aedc.tar.gz
PeerTube-5d4e9411005059c775e1b1ccd85100cd9484aedc.tar.zst
PeerTube-5d4e9411005059c775e1b1ccd85100cd9484aedc.zip
Add nginx example file
Diffstat (limited to 'support/nginx')
-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}