Update production guide

Use release that already contains build files. It requires a specific
directories tree but I think it would be fine.
This commit is contained in:
Chocobozzz 2018-01-15 17:56:58 +01:00
parent 53733ec2ab
commit d2000ca6e7
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 35 additions and 28 deletions

View file

@ -2,7 +2,9 @@ server {
listen 80;
# listen [::]:80;
server_name domain.tld;
rewrite ^ https://$server_name$request_uri? permanent;
location /.well-known/acme-challenge/ { allow all; }
location / { return 301 https://$host$request_uri; }
}
server {
@ -49,7 +51,7 @@ server {
add_header 'Access-Control-Allow-Headers' 'Range,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
}
alias /your/installation/PeerTube/videos;
alias /home/peertube/storage/videos;
}
# Websocket tracker