Media module, users hardening, README and token ledger

This commit is contained in:
Matthijs Iriks committed 2026-12-04 01:27:04 +01:00
1 parent f86f5aea28
commit 9f2a21fa1f
22 files changed
+827 -24

No files matched your search

+18 -2
View File
@@ -45,9 +45,25 @@ return [
],
/*
| The disk for uploaded media.
| The media library. Files live on a Laravel filesystem disk; each media row remembers
| its own disk, so a file stays where it was uploaded when `disk` changes later.
*/
'media_disk' => env('MANAGER_MEDIA_DISK', 'public'),
'media' => [
'disk' => env('MANAGER_MEDIA_DISK', 'public'),
// How much room the library has in total, in GB. An upload that would go over it is refused.
'max_total_gb' => (float) env('MANAGER_MEDIA_MAX_TOTAL_GB', 15),
// Largest single upload in MB. PHP and the web server must allow it too
// (upload_max_filesize, post_max_size, client_max_body_size).
'max_file_mb' => (int) env('MANAGER_MEDIA_MAX_FILE_MB', 40),
// File extensions the library accepts. SVG is deliberately missing: it can carry scripts.
'extensions' => ['jpg', 'jpeg', 'png', 'webp', 'gif', 'pdf', 'mp4', 'webm'],
// Visitors loading files per minute per address (the `media-files` rate limiter).
'per_minute' => 600,
],
/*
| Prefix for the tables of the package.