Skip to content

Commit

Permalink
feat(docker): adds default theme config option, increment alphine ver…
Browse files Browse the repository at this point in the history
…sion (merge pull request #167 from codedipper/docker1)

feat(docker): default theme config opt, update(Dockerfile): increment Alpine version
  • Loading branch information
Ahwxorg authored Jul 4, 2024
2 parents 41da86a + ca08ea9 commit 533e316
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.19
FROM alpine:3.20

WORKDIR "/var/www/html"

Expand Down
1 change: 1 addition & 0 deletions config.php.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions docker/attributes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docker/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 533e316

Please sign in to comment.