librespeed-php.ini 743 B

123456789101112131415161718
  1. ; LibreSpeed-recommended PHP override.
  2. ;
  3. ; speedtest_worker.js uploads in 20 MB chunks by default
  4. ; (xhr_ul_blob_megabytes: 20). PHP's stock post_max_size = 8M rejects
  5. ; every chunk: PHP emits a "POST Content-Length ... exceeds the
  6. ; limit" startup warning and prevents empty.php from sending its
  7. ; response headers (Cache-Control, Pragma, Connection, and CORS
  8. ; under ?cors).
  9. ;
  10. ; The upload throughput number itself is unaffected — the worker
  11. ; reads bytes-on-wire from xhr.upload.onprogress, not the response
  12. ; body — but the response from empty.php is otherwise malformed.
  13. ;
  14. ; 32M is the next round number above the worker's 20M default; it
  15. ; leaves headroom for operators who tune xhr_ul_blob_megabytes
  16. ; upwards.
  17. post_max_size = 32M