Closed codeplexnl closed 4 years ago
What is the content of your Nginx configuration?
The content of my nginx config is:
server {
if ($host =<site>l) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
server_name <site>;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name<site>;
ssl on;
ssl_certificate /etc/letsencrypt/live/<site>/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/<site>/privkey.pem; # managed by Certbot
root /var/www;
index index.html;
if ($scheme != "https") {
return 301 https://$host$request_uri;
}
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 8G;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
}
location /tracker/socket {
proxy_read_timeout 1200s;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8080;
}
}
I adjusted the config but does this mean that all videos should be uploaded again?
I think you could find them in your old containers (if you did not delete them).
What happened? For a change to the server i need3ed to restart the server. After the restart videos are not able to play back. Newly uploaded ones are.
What do you expect to happen instead? The instance would startup and i could watch the videos
Steps to reproduce:
Other info The weird part is that when i upload a new video it does playback.
I am running it in a docker container with a nginx proxy_pass. Peertube version: 2.1.1
Javascript console logs