aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx
diff options
context:
space:
mode:
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