diff --git a/docker/README.md b/docker/README.md index bb7d06c..e8d0899 100644 --- a/docker/README.md +++ b/docker/README.md @@ -87,6 +87,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_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 0559a46..8784ac7 100755 --- a/docker/attributes.sh +++ b/docker/attributes.sh @@ -22,6 +22,7 @@ export OPEN_SEARCH_HOST=${OPEN_SEARCH_HOST:-"127.0.0.1"} 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_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 6141dc7..f305fe8 100644 --- a/docker/php/config.php +++ b/docker/php/config.php @@ -3,6 +3,7 @@ "google_domain" => "${CONFIG_GOOGLE_DOMAIN}", "google_language_site" => "${CONFIG_GOOGLE_LANGUAGE_SITE}", "google_language_results" => "${CONFIG_GOOGLE_LANGUAGE_RESULTS}", + "google_number_of_results" => "${CONFIG_GOOGLE_NUMBER_OF_RESULTS}", "wikipedia_language" => "${CONFIG_WIKIPEDIA_LANGUAGE}", "invidious_instance_for_video_results" => "${CONFIG_INVIDIOUS_INSTANCE}", diff --git a/docker/php/php.dockerfile b/docker/php/php.dockerfile index 901bffa..e371b15 100644 --- a/docker/php/php.dockerfile +++ b/docker/php/php.dockerfile @@ -14,6 +14,7 @@ ENV OPEN_SEARCH_HOST="http://127.0.0.1:${NGINX_PORT}" 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_INVIDIOUS_INSTANCE="https://invidious.snopyta.org" ENV CONFIG_HIDDEN_SERVICE_SEARCH=false ENV CONFIG_DISABLE_BITTORRENT_SEARCH=false