Files
coursehub/config.example.php
T
Harwinder Sekhon 31b01a1a18 UI improved
2026-07-27 13:58:47 -04:00

28 lines
936 B
PHP

<?php
// ---- CourseHub configuration ----
// Absolute path to the directory that contains your course folders, e.g.
// /srv/media/courses/
// Course 1/Intro/Video1.mp4
// Course 2/Module 3/Advanced/lesson.mp4
define('VIDEOS_ROOT', '/srv/courses');
define('DB_HOST', '127.0.0.1');
define('DB_PORT', 3306);
define('DB_NAME', 'coursehub');
define('DB_USER', 'coursehub');
define('DB_PASS', 'change-me');
// A video counts as "completed" once the user has watched this fraction of it.
define('COMPLETE_THRESHOLD', 0.95);
// Allow new users to self-register from the login page.
define('ALLOW_REGISTRATION', true);
// Where generated course thumbnails are cached. Must be writable by the PHP
// process; created automatically on first scan if missing.
define('THUMBNAILS_DIR', __DIR__ . '/cache/thumbnails');
// Capture each course's thumbnail this far into its first video (0.0-1.0).
define('THUMBNAIL_SEEK_PERCENT', 0.4);