Compare commits

...

3 commits

Author SHA1 Message Date
anmol26s e200a3bbb5 only allow x-frame to /video/embed path for security 2018-07-15 16:57:54 +05:30
anmol26s 174c8658d0 Hide x-frame header 2018-07-15 16:29:10 +05:30
anmol26s 23de5da82f ifram fix and increase video size to 8 Gb 2018-07-15 15:59:35 +05:30

View file

@ -1,3 +1,5 @@
add_header X-Frame-Options https://__DOMAIN__/videos/embed;
location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ {
add_header Cache-Control "public, max-age=31536000, immutable";
@ -19,8 +21,8 @@
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Hard limit, PeerTube does not support videos > 4GB
client_max_body_size 4G;
# Hard limit, PeerTube does not support videos > 8GB
client_max_body_size 8G;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;