diff --git a/docker/README.md b/docker/README.md index 7104f17..82f8040 100644 --- a/docker/README.md +++ b/docker/README.md @@ -89,6 +89,7 @@ This docker image was developed with high configurability in mind, so here is th | CONFIG_GOOGLE_DOMAIN | "com" | "com", "com.br", "com.es" | Defines which Google domain the search will be done, change according to your country | | CONFIG_GOOGLE_LANGUAGE | "en" | "pt", "es", "ru" | Defines the language in which searches will be done, see the list of supported languages [here](https://developers.google.com/custom-search/docs/ref_languages). | | CONFIG_GOOGLE_NUMBER_OF_RESULTS | "10" | "10", "20", "30" | Number of results for Google to return each page. | +| CONFIG_INSTANCE_FALLBACK | true | boolean | Choose whether or not to use the API on the backend to request to another LibreX/Y instance in case of rate limiting. | | CONFIG_INVIDIOUS_INSTANCE | "https://invidious.namazso.eu" | string | Defines the host that will be used to do video searches using invidious | | CONFIG_HIDDEN_SERVICE_SEARCH | false | boolean | Defines whether safesearch will be enabled or disabled | | CONFIG_DISABLE_BITTORRENT_SEARCH | false | boolean | Defines whether bittorrent support will be enabled or disabled | diff --git a/docker/attributes.sh b/docker/attributes.sh index 91829bb..900fd9d 100755 --- a/docker/attributes.sh +++ b/docker/attributes.sh @@ -23,6 +23,7 @@ export CONFIG_GOOGLE_DOMAIN="${CONFIG_GOOGLE_DOMAIN:-"com"}" export CONFIG_GOOGLE_LANGUAGE_SITE="${CONFIG_GOOGLE_LANGUAGE_SITE:-"en"}" export CONFIG_GOOGLE_LANGUAGE_RESULTS="${CONFIG_GOOGLE_LANGUAGE_RESULTS:-"en"}" export CONFIG_GOOGLE_NUMBER_OF_RESULTS="${CONFIG_GOOGLE_NUMBER_OF_RESULTS:-"10"}" +export CONFIG_INSTANCE_FALLBACK="${CONFIG_INSTANCE_FALLBACK}:-true} export CONFIG_INVIDIOUS_INSTANCE="${CONFIG_INVIDIOUS_INSTANCE:-"invidious.snopyta.org"}" export CONFIG_HIDDEN_SERVICE_SEARCH=${CONFIG_HIDDEN_SERVICE_SEARCH:-false} export CONFIG_DISABLE_BITTORRENT_SEARCH=${CONFIG_DISABLE_BITTORRENT_SEARCH:-false} diff --git a/docker/php/config.php b/docker/php/config.php index a62af5d..ab09990 100644 --- a/docker/php/config.php +++ b/docker/php/config.php @@ -11,6 +11,7 @@ "disable_bittorent_search" => ${CONFIG_DISABLE_BITTORRENT_SEARCH}, "bittorent_trackers" => "${CONFIG_BITTORRENT_TRACKERS}", "disable_hidden_service_search" => ${CONFIG_HIDDEN_SERVICE_SEARCH}, + "instance_fallback" => ${CONFIG_INSTANCE_FALLBACK}, "frontends" => array( "invidious" => array( diff --git a/docker/php/php.dockerfile b/docker/php/php.dockerfile index 90fc93b..5a52265 100644 --- a/docker/php/php.dockerfile +++ b/docker/php/php.dockerfile @@ -15,6 +15,7 @@ ENV CONFIG_GOOGLE_DOMAIN="com" ENV CONFIG_GOOGLE_LANGUAGE_SITE="en" ENV CONFIG_GOOGLE_LANGUAGE_RESULTS="en" ENV CONFIG_GOOGLE_NUMBER_OF_RESULTS="10" +ENV CONFIG_INSTANCE_FALLBACK=true ENV CONFIG_INVIDIOUS_INSTANCE="https://invidious.snopyta.org" ENV CONFIG_HIDDEN_SERVICE_SEARCH=false ENV CONFIG_DISABLE_BITTORRENT_SEARCH=false