diff --git a/config.php.example b/config.php.example index 04658443..5e96d546 100644 --- a/config.php.example +++ b/config.php.example @@ -9,6 +9,7 @@ "number_of_results" => 10, // The default theme css to use + // use `ls --ignore={styles,auto}.css static/css | cut -d. -f1` to list valid themes "default_theme" => "dark", // You can use any Invidious instance here diff --git a/docker/README.md b/docker/README.md index 3cb67325..291380a8 100644 --- a/docker/README.md +++ b/docker/README.md @@ -105,6 +105,7 @@ This Docker image was developed with high configurability in mind, so here is th | CONFIG_CACHE_TIME | 20 | integer | Time in minutes to store results for in the cache. | | CONFIG_DISABLE_API | false | boolean | Disable requests to /api.php | | CONFIG_SHOW_RESULT_SOURCE | true | boolean | Whether to show where the result is from on the results page | +| CONFIG_DEFAULT_THEME | "dark" | "nord", "darker", "discord" | The default theme for users without cookies or request parameters set. | ### Frontends diff --git a/docker/attributes.sh b/docker/attributes.sh index 23c597ab..ed13cf7b 100755 --- a/docker/attributes.sh +++ b/docker/attributes.sh @@ -31,6 +31,7 @@ export CONFIG_RATE_LIMIT_COOLDOWN="${CONFIG_RATE_LIMIT_COOLDOWN:-25}" export CONFIG_CACHE_TIME="${CONFIG_CACHE_TIME:-20}" export CONFIG_DISABLE_API="${CONFIG_DISABLE_API:-false}" export CONFIG_SHOW_RESULT_SOURCE="${CONFIG_SHOW_RESULT_SOURCE:-true}" +export CONFIG_DEFAULT_THEME=${CONFIG_DEFAULT_THEME:-"dark"} # Supported apps integration configuration. These empty spaces can be set up using free hosts as pointers # A particular example is using the "https://yewtu.be" or a self-hosted host to integrate the invidious app to librey diff --git a/docker/config.php b/docker/config.php index 76684d7e..83357719 100644 --- a/docker/config.php +++ b/docker/config.php @@ -13,6 +13,7 @@ "cache_time" => ${CONFIG_CACHE_TIME}, "disable_api" => ${CONFIG_DISABLE_API}, "show_result_source" => ${CONFIG_SHOW_RESULT_SOURCE}, + "default_theme" => "${CONFIG_DEFAULT_THEME}", "frontends" => array( "invidious" => array(