Increase upload limit to 8GB (test)
This commit is contained in:
parent
e1807a942f
commit
34b1919290
|
@ -131,11 +131,11 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
|
||||||
const videofile = this.videofileInput.nativeElement.files[0] as File
|
const videofile = this.videofileInput.nativeElement.files[0] as File
|
||||||
if (!videofile) return
|
if (!videofile) return
|
||||||
|
|
||||||
// Cannot upload videos > 4GB for now
|
// Cannot upload videos > 8GB for now
|
||||||
// if (videofile.size > 4 * 1024 * 1024 * 1024) {
|
if (videofile.size > 8 * 1024 * 1024 * 1024) {
|
||||||
// this.notificationsService.error(this.i18n('Error'), this.i18n('We are sorry but PeerTube cannot handle videos > 4GB'))
|
this.notificationsService.error(this.i18n('Error'), this.i18n('We are sorry but PeerTube cannot handle videos > 8GB'))
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
|
|
||||||
const videoQuota = this.authService.getUser().videoQuota
|
const videoQuota = this.authService.getUser().videoQuota
|
||||||
if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) {
|
if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) {
|
||||||
|
|
|
@ -41,7 +41,7 @@ server {
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
add_header X-Robots-Tag none;
|
add_header X-Robots-Tag none;
|
||||||
|
|
||||||
access_log /var/log/nginx/peertube.example.com.access.log;
|
access_log /var/log/nginx/peertube.example.com.access.log;
|
||||||
error_log /var/log/nginx/peertube.example.com.error.log;
|
error_log /var/log/nginx/peertube.example.com.error.log;
|
||||||
|
|
||||||
|
@ -68,8 +68,8 @@ server {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
# Hard limit, PeerTube does not support videos > 4GB
|
# Hard limit, PeerTube does not support videos > 8GB
|
||||||
client_max_body_size 4G;
|
client_max_body_size 8G;
|
||||||
proxy_connect_timeout 600;
|
proxy_connect_timeout 600;
|
||||||
proxy_send_timeout 600;
|
proxy_send_timeout 600;
|
||||||
proxy_read_timeout 600;
|
proxy_read_timeout 600;
|
||||||
|
|
Loading…
Reference in New Issue