aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-15 17:56:58 +0100
committerChocobozzz <me@florianbigard.com>2018-01-15 18:07:08 +0100
commitd2000ca6e7fa77758d4f811e4a8af11108d2655d (patch)
treed40860d17f33eacd33f79780fab08ecb7e6e46a7 /support/nginx
parent53733ec2abd4b7588c85cdd37824b0082b46f188 (diff)
downloadPeerTube-d2000ca6e7fa77758d4f811e4a8af11108d2655d.tar.gz
PeerTube-d2000ca6e7fa77758d4f811e4a8af11108d2655d.tar.zst
PeerTube-d2000ca6e7fa77758d4f811e4a8af11108d2655d.zip
Update production guide
Use release that already contains build files. It requires a specific directories tree but I think it would be fine.
Diffstat (limited to 'support/nginx')
-rw-r--r--support/nginx/peertube (renamed from support/nginx/peertube-https)6
1 files changed, 4 insertions, 2 deletions
diff --git a/support/nginx/peertube-https b/support/nginx/peertube
index c3465f74b..f7be64424 100644
--- a/support/nginx/peertube-https
+++ b/support/nginx/peertube
@@ -2,7 +2,9 @@ server {
2 listen 80; 2 listen 80;
3 # listen [::]:80; 3 # listen [::]:80;
4 server_name domain.tld; 4 server_name domain.tld;
5 rewrite ^ https://$server_name$request_uri? permanent; 5
6 location /.well-known/acme-challenge/ { allow all; }
7 location / { return 301 https://$host$request_uri; }
6} 8}
7 9
8server { 10server {
@@ -49,7 +51,7 @@ server {
49 add_header 'Access-Control-Allow-Headers' 'Range,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; 51 add_header 'Access-Control-Allow-Headers' 'Range,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
50 } 52 }
51 53
52 alias /your/installation/PeerTube/videos; 54 alias /home/peertube/storage/videos;
53 } 55 }
54 56
55 # Websocket tracker 57 # Websocket tracker