diff --git a/conf/nginx.conf b/conf/nginx.conf index 99fedf6..ad57753 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -19,6 +19,13 @@ location @api { proxy_pass http://127.0.0.1:__PORT__; } +location = /api/v1/videos/upload-resumable { + client_max_body_size 0; + proxy_request_buffering off; + + try_files /dev/null @api; + } + location / { if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; @@ -30,6 +37,7 @@ location / { include conf.d/yunohost_panel.conf.inc; } + location = /api/v1/videos/upload { limit_except POST HEAD { deny all; }