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:
glass beadian 2026-10-15 08:46:50 +00:00
parent 3c1bce1cd2
commit 1ddaf32edf
2 changed files with 8 additions and 8 deletions

View file

@ -38,7 +38,7 @@ http {
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
client_max_body_size 512m;
client_max_body_size 2g;
location / {
proxy_pass http://web:3001;
proxy_http_version 1.1;
@ -61,7 +61,7 @@ http {
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
client_max_body_size 512m;
client_max_body_size 2g;
location / {
proxy_pass http://api:3000;
proxy_http_version 1.1;
@ -250,7 +250,7 @@ http {
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
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
# (title, blue theme-color, white/blue splash) — rewrite at the edge.
proxy_set_header Accept-Encoding "";
@ -271,7 +271,7 @@ http {
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.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 {
default_type application/json;
alias /opt/occ-brand/hub-theme.json;
@ -358,7 +358,7 @@ http {
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
client_max_body_size 20m;
client_max_body_size 2g;
location / {
proxy_pass http://occ-intake:3000;
proxy_http_version 1.1;
@ -415,7 +415,7 @@ http {
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
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_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
client_max_body_size 80m;
client_max_body_size 2g;
location ~ ^/api/v1/streaming {
proxy_pass http://192.168.13.221:4040;
proxy_http_version 1.1;