Docs: an nginx /api/admin/ block with a 4m body limit, so big saves don't get a 413
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5eebc20c4e
commit
2d354a35c1
1 changed files with 12 additions and 0 deletions
12
docs/seo.md
12
docs/seo.md
|
|
@ -111,6 +111,18 @@ with it off it blocks everything.
|
|||
client_max_body_size 26m;
|
||||
proxy_read_timeout 60s;
|
||||
}
|
||||
|
||||
# The admin's saves send a record whole (every content block,
|
||||
# schedule entry and sub-item), well over 64k for a big page or
|
||||
# event: nginx answers 413 "Too large for the web server" without
|
||||
# this. A longer prefix than /api/, so it wins; the exact and
|
||||
# longer admin blocks (media, files, import, clips) still win over
|
||||
# it. Same proxy_set_header lines as /api/.
|
||||
location /api/admin/ {
|
||||
proxy_pass http://127.0.0.1:3001;
|
||||
client_max_body_size 4m;
|
||||
proxy_read_timeout 30s;
|
||||
}
|
||||
```
|
||||
|
||||
Keep the existing `/api/` and `/uploads/` blocks; they're more
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue