From 928e074d24f25b733211b2fc82be4e4408022ece Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Mon, 15 Jun 2026 16:27:38 +0200 Subject: [PATCH] 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. --- TODO.md | 4 +++- justfile | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/TODO.md b/TODO.md index 1d0ad82..9ea8100 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,7 @@ # TODO > 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 @@ -15,6 +15,8 @@ - [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] #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)` ✓ diff --git a/justfile b/justfile index 3ab40c6..9b1db6a 100644 --- a/justfile +++ b/justfile @@ -16,11 +16,11 @@ dev: migrate @xdg-open http://127.0.0.1:8000 & @xdg-open http://127.0.0.1:8000/admin/ & @php \ - -d upload_max_filesize=512M \ - -d post_max_size=520M \ - -d memory_limit=256M \ - -d max_execution_time=300 \ - -d max_input_time=300 \ + -d upload_max_filesize=8192M \ + -d post_max_size=8704M \ + -d memory_limit=512M \ + -d max_execution_time=600 \ + -d max_input_time=600 \ -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)'