takeone-youtube-clone/README_cleanup.md
ghassan 0b2e95ea65 Add NAS file manager integration and all pending platform changes
- Installed p7h/nas-file-manager package via private VCS repo
- Published config/nas-file-manager.php with super_admin middleware restriction
- Added NAS env vars to .env.example
- Created admin/nas-storage page with connection info panel and file browser widget
- Added NAS Storage link to admin sidebar (super_admin only)
- Added SuperAdminController@nasStorage method and admin.nas-storage route
- Includes all accumulated branch changes: profile wall, 2FA, audit logs,
  settings panel, country/phone/timezone components, posts, slideshow,
  playlist shares, video downloads/shares, comment likes, notifications,
  social links, and more

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 13:24:32 +03:00

28 lines
698 B
Markdown

# Video Platform Orphan Cleanup ✅
## Core Feature Complete
**Cron Job:**
- Command: `php artisan cleanup:orphaned-videos --force`
- Scheduled: Every 30min (`CLEANUP_INTERVAL_MINUTES=30` in .env)
- Dir: Deletes `storage/app/public/videos/*` w/o DB Video::filename match (inc compressed_)
- Logs: `storage/logs/orphaned-videos.log`
**Dashboard (/admin/dashboard):**
- Gauge: Videos size %
- Button: AJAX manual clean
**Production Setup:**
```
* * * * * cd /var/www/videoplatform && php artisan schedule:run >> /dev/null 2>&1
```
**Tested:**
- Dry-run: Found/deleted 6 orphans
- Cron: Scheduled
- Logs: Active
Button CSRF issue? Use CLI manual or cron.
Self-cleaning platform ready. 🎥🧹