fix: increase PHP upload limits to support large video files

Raised upload_max_filesize from 512M to 8192M (8G) and post_max_size
from 520M to 8704M to match the JS-side per-extension size caps that
allow up to 8GB for video files (mp4, webm, mov, etc.).  Also raised
memory_limit to 512M and max_input_time to 600s.
This commit is contained in:
Pontoporeia
2026-06-15 16:17:38 +02:00
parent a5db81a73d
commit 2633cb13b5
2 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
# TODO
> Last updated: 2026-06-15
> Context: Fix FilePond CSRF token staleness caused by autosave token rotation
> Context: Fix FilePond CSRF + adminOld return type; restore soft-deleted anglais/néerlandais languages
## Pending
@@ -12,7 +12,9 @@
## Completed
- [x] #filepond-csrf-stale Fix FilePond CSRF token going stale when autosave rotates it — headers are now functions that re-read meta tag on each request `(file-upload-filepond.js)`
- [x] #filepond-csrf-stale Fix FilePond CSRF token going stale when autosave rotates it `(file-upload-filepond.js)`
- [x] #adminold-return-type Fix adminOld closure return type from `:string` to `:string|array` `(FormBootstrap.php)`
- [x] #restore-languages Un-soft-delete anglais (id=2) and néerlandais (id=71) in dev DB ✓
- [x] #csp-media-iframe-fix Fix CSP `frame-ancestors 'none'` blocking PDF iframes — replaced `try_files` redirect with direct `fastcgi_pass` in `location = /media` so `add_header` CSP override survives internal nginx redirect `(nginx/xamxam.conf)`

View File

@@ -1,6 +1,6 @@
; PHP upload limits — applies when served via PHP-FPM (nginx)
upload_max_filesize = 512M
post_max_size = 520M
memory_limit = 256M
upload_max_filesize = 8192M
post_max_size = 8704M
memory_limit = 512M
max_execution_time = 300
max_input_time = 300
max_input_time = 600