Commit Graph

12 Commits

Author SHA1 Message Date
Divarion-D
774d2318f3 feat: Migrate legacy CLI scripts to console.php and extract streaming middleware
CLI consolidation:
- Delete 13 legacy CLI scripts from includes/cli/ (ondemand, proxy, queue, record, scanner, signals, startup, thumbnail, tools, update, watchdog, plex_item, watch_item)
- Convert status and tools entry points to thin proxies that delegate to console.php
- Update all shell_exec() calls across admin controllers, views, and API layer to use console.php command syntax instead of direct CLI file paths
- Update src/service to launch daemons via console.php (signals, watchdog, queue, cache_handler, startup)
- Update Python src/update script to call console.php update instead of includes/cli/update.php
- Update test_installer to use console.php startup

Streaming deduplication:
- Extract StreamAuthMiddleware — common response headers and token decryption shared by live/vod/timeshift
- Extract ShutdownHandler — unified shutdown logic replacing 3 duplicate function shutdown() blocks
- Refactor live.php, vod.php, timeshift.php to use new middleware classes
- Add streaming micro-router to www/stream/index.php as fallback entry point

Routing fixes:
- Fix admin index.php redirect to use relative path (supports access code prefixes)
- Add access code root redirect in public/index.php to prevent broken CSS/JS asset resolution
- Fix init.php for CLI compatibility: guard $_SERVER access, define PHP_ERRORS safely

Migrations:
- 001_update_crontab_filenames.sql — strip .php suffix from crontab filenames
- Fix cache.php view query to match new filename format (cache_engine instead of cache_engine.php)
2026-03-14 23:57:33 +03:00
Eoghan Cunningham
c7aae1050f Modify Redis configuration in install script fix 500 error with v1.2.16
Updated Redis configuration in install script.
2026-02-22 09:44:11 +00:00
Divarion-D
2faa779390 Added libnuma1 to installer 2026-01-03 19:54:18 +03:00
Divarion-D
5252291df3 Added automatic memory calculation for mariadb and replaced mysql with mariadb 2025-12-14 22:24:09 +03:00
Divarion-D
5b28ad63b5 Update mariadb to 11.4 2025-12-04 22:24:27 +03:00
Divarion-D
d92f787056 Updated documentation and installed support for Ubuntu 20.x. libssl3 is installed for compatibility with PHP. The service startup timeout has been changed. 2025-11-30 20:42:55 +03:00
Divarion-D
726397a92e Libraries added to the MAIN and LB installer 2025-10-12 13:05:11 +03:00
Divarion-D
295864f5bf Added support for Ubuntu 24 2025-10-08 21:05:10 +03:00
Divarion-D
d41080f29d Added a change to the panel port during installation. Moved the creation of credentials.txt to the top of the script. 2025-10-03 19:49:43 +03:00
Divarion-D
236db3c528 Fixes #15 2025-09-30 18:36:34 +03:00
Divarion-D
c674d9ac0d Added missing libraries for ffmpeg and removed obsolete mariadb configurations. 2025-09-14 20:24:55 +03:00
Divarion-D
09faf1b1b2 init 2025-07-10 20:01:56 +03:00