fix: raise upload limits — api 2 GiB, nginx 2g (was 100 MiB api / 20m-512m nginx)
Cloudflare free caps at 100 MB on the proxied route regardless; larger files need the domain set to DNS-only or a chunked upload path.
This commit is contained in:
parent
3c1bce1cd2
commit
1ddaf32edf
2 changed files with 8 additions and 8 deletions
|
|
@ -1,2 +1,2 @@
|
||||||
// StorageService seals whole Buffers; bound multipart memory use per request.
|
// StorageService seals whole Buffers; bound multipart memory use per request.
|
||||||
export const MAX_VIDEO_UPLOAD_BYTES = 100 * 1024 * 1024;
|
export const MAX_VIDEO_UPLOAD_BYTES = 2 * 1024 * 1024 * 1024;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ http {
|
||||||
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
||||||
|
|
||||||
client_max_body_size 512m;
|
client_max_body_size 2g;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://web:3001;
|
proxy_pass http://web:3001;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
@ -61,7 +61,7 @@ http {
|
||||||
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
||||||
|
|
||||||
client_max_body_size 512m;
|
client_max_body_size 2g;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://api:3000;
|
proxy_pass http://api:3000;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
@ -250,7 +250,7 @@ http {
|
||||||
proxy_read_timeout 3600s;
|
proxy_read_timeout 3600s;
|
||||||
proxy_send_timeout 3600s;
|
proxy_send_timeout 3600s;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
client_max_body_size 512m;
|
client_max_body_size 2g;
|
||||||
# oCIS web's index.html carries ownCloud branding before the app mounts
|
# oCIS web's index.html carries ownCloud branding before the app mounts
|
||||||
# (title, blue theme-color, white/blue splash) — rewrite at the edge.
|
# (title, blue theme-color, white/blue splash) — rewrite at the edge.
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
|
|
@ -271,7 +271,7 @@ http {
|
||||||
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
||||||
|
|
||||||
client_max_body_size 512m;
|
client_max_body_size 2g;
|
||||||
location = /themes/owncloud/theme.json {
|
location = /themes/owncloud/theme.json {
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
alias /opt/occ-brand/hub-theme.json;
|
alias /opt/occ-brand/hub-theme.json;
|
||||||
|
|
@ -358,7 +358,7 @@ http {
|
||||||
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
||||||
|
|
||||||
client_max_body_size 20m;
|
client_max_body_size 2g;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://occ-intake:3000;
|
proxy_pass http://occ-intake:3000;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
@ -415,7 +415,7 @@ http {
|
||||||
proxy_read_timeout 3600s;
|
proxy_read_timeout 3600s;
|
||||||
proxy_send_timeout 3600s;
|
proxy_send_timeout 3600s;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
client_max_body_size 80m;
|
client_max_body_size 2g;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -427,7 +427,7 @@ http {
|
||||||
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
||||||
|
|
||||||
client_max_body_size 80m;
|
client_max_body_size 2g;
|
||||||
location ~ ^/api/v1/streaming {
|
location ~ ^/api/v1/streaming {
|
||||||
proxy_pass http://192.168.13.221:4040;
|
proxy_pass http://192.168.13.221:4040;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue