080af984de
install.php now takes the videos path (form field / --videos= CLI flag), persists it into config.php, and creates the directory if missing. config.example.php default changed from a dev path to /srv/courses. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21 lines
625 B
PHP
21 lines
625 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);
|