Production Checklist
Access
- [ ] Keep
MEDIAFLOW_AUTH_ENABLED=true. - [ ] Limit access with roles, permissions, a gate or
MediaFlow::authorize(). The Settings and Diagnostics pages can change storage credentials, so keep them to administrators. - [ ] Add rate limiting, e.g.
MEDIAFLOW_CUSTOM_MIDDLEWARE=throttle:60,1. - [ ] Turn on
MEDIAFLOW_USER_SCOPED=trueif non-admin users share one library, and validate submitted media IDs against the current user.
Files
- [ ] Store private uploads on a non-public disk with
MEDIAFLOW_PRIVATE_DISK. - [ ] Keep
allowed_mimesas narrow as your app needs. - [ ] Leave
sanitize_svgon, or removeimage/svg+xmlif you do not need SVG. - [ ] Raise
upload_max_filesize,post_max_sizeand your web server body limit to at leastMEDIAFLOW_MAX_FILE_SIZE_KB.
Credentials and URLs
- [ ] Put cloud credentials in
.env(MEDIAFLOW_PROVIDER_*). Values saved on the Settings page are stored inmediaflow_settings; they are never sent to the browser, but anyone with database access can read them. - [ ] Configure trusted hosts and proxies so generated URLs use your real domain.
Deploys and monitoring
- [ ] Run
php artisan config:cache(orphp artisan optimize) after installing or updating. - [ ] Re-publish assets after every update:
php artisan vendor:publish --tag=mediaflow-assets --force. - [ ] Schedule
mediaflow:clean-tempand monitormediaflow:verify-storage; see Artisan Commands.