fix(nginx): raise body-size limit 10m → 256m for mesh/content/dwn peer paths
Was seeing "upload failed: 413" on mesh attachment sends between federated nodes — a ~7MB image becomes ~10MB base64 in the typed_envelope wire and hit the 10m client_max_body_size on /archipelago/, /content/, and /dwn/. Bumped those six locations (two per server block, regular + HTTPS) to 256m so modern attachments/blobs don't trip the proxy. /rpc/ stays at 1m — internal JSON-RPC calls are small and don't need the headroom. Applied to all 4 fleet nodes live; ISO source config updated so fresh installs get the same limits. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
eac583c15e
commit
5d2fac690e
@ -113,7 +113,7 @@ server {
|
||||
# Peer-to-peer node messaging (receives from other nodes over Tor)
|
||||
location /archipelago/ {
|
||||
limit_req zone=peer burst=20 nodelay;
|
||||
client_max_body_size 10m;
|
||||
client_max_body_size 256m;
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_send_timeout 30s;
|
||||
@ -198,7 +198,7 @@ server {
|
||||
# Content sharing — peer access over Tor (no auth)
|
||||
location /content {
|
||||
limit_req zone=peer burst=20 nodelay;
|
||||
client_max_body_size 10m;
|
||||
client_max_body_size 256m;
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_send_timeout 30s;
|
||||
@ -244,7 +244,7 @@ server {
|
||||
# DWN endpoints — peer access over Tor (no auth)
|
||||
location /dwn {
|
||||
limit_req zone=peer burst=20 nodelay;
|
||||
client_max_body_size 10m;
|
||||
client_max_body_size 256m;
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_send_timeout 30s;
|
||||
@ -922,7 +922,7 @@ server {
|
||||
|
||||
location /archipelago/ {
|
||||
limit_req zone=peer burst=20 nodelay;
|
||||
client_max_body_size 10m;
|
||||
client_max_body_size 256m;
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_send_timeout 30s;
|
||||
@ -986,7 +986,7 @@ server {
|
||||
# Content sharing — peer access over Tor (no auth)
|
||||
location /content {
|
||||
limit_req zone=peer burst=20 nodelay;
|
||||
client_max_body_size 10m;
|
||||
client_max_body_size 256m;
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_send_timeout 30s;
|
||||
@ -1032,7 +1032,7 @@ server {
|
||||
# DWN endpoints — peer access over Tor (no auth)
|
||||
location /dwn {
|
||||
limit_req zone=peer burst=20 nodelay;
|
||||
client_max_body_size 10m;
|
||||
client_max_body_size 256m;
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_send_timeout 30s;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user