fix: update dev server PHP limits in justfile to match large video uploads

The just dev command hardcodes upload_max_filesize=512M and
post_max_size=520M via -d flags, which override .user.ini.
Raised to 8192M/8704M to match the JS-side 8GB video size
caps.  Also raised max_execution_time and max_input_time to
600s to accommodate large file transfers and PeerTube uploads.
This commit is contained in:
Pontoporeia
2026-06-15 16:27:38 +02:00
parent c8af3bf869
commit 928e074d24
2 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
# TODO # TODO
> Last updated: 2026-06-15 > Last updated: 2026-06-15
> Context: Fix FilePond CSRF + adminOld return type; restore soft-deleted anglais/néerlandais languages > Context: Multiple fixes for upload flow: CSRF staleness, adminOld return type, PHP upload limits, FormData crash, soft-deleted languages
## Pending ## Pending
@@ -15,6 +15,8 @@
- [x] #filepond-csrf-stale Fix FilePond CSRF token going stale when autosave rotates it `(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] #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] #restore-languages Un-soft-delete anglais (id=2) and néerlandais (id=71) in dev DB ✓
- [x] #php-upload-limits Increase PHP upload_max_filesize to 8G, post_max_size to 8.5G `(.user.ini)`
- [x] #formdata-fieldset-crash Remove leftover debug console.log that called new FormData(fieldset) `(admin/footer.php)`
- [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)` - [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

@@ -16,11 +16,11 @@ dev: migrate
@xdg-open http://127.0.0.1:8000 & @xdg-open http://127.0.0.1:8000 &
@xdg-open http://127.0.0.1:8000/admin/ & @xdg-open http://127.0.0.1:8000/admin/ &
@php \ @php \
-d upload_max_filesize=512M \ -d upload_max_filesize=8192M \
-d post_max_size=520M \ -d post_max_size=8704M \
-d memory_limit=256M \ -d memory_limit=512M \
-d max_execution_time=300 \ -d max_execution_time=600 \
-d max_input_time=300 \ -d max_input_time=600 \
-S 127.0.0.1:8000 -t app/public/ app/router.php 2>&1 \ -S 127.0.0.1:8000 -t app/public/ app/router.php 2>&1 \
| stdbuf -oL grep -Ev '(Accepted|Closing|live-reload\.php|assets/|favicon)' | stdbuf -oL grep -Ev '(Accepted|Closing|live-reload\.php|assets/|favicon)'