mirror of
https://github.com/hnhx/librex.git
synced 2025-01-25 02:03:04 -03:00
Merge pull request #165 from juniorbotelho/fix/docker-environments
fix(docker): fix typo "CONFIG GOOGLE LANGUAGE"
This commit is contained in:
commit
7aefbb2b9e
5 changed files with 9 additions and 9 deletions
|
@ -50,7 +50,7 @@ To run librex in a docker container, you can simply use the command:
|
|||
docker run -d --name librex \
|
||||
-e TZ="America/New_York" \
|
||||
-e CONFIG_GOOGLE_DOMAIN="com" \
|
||||
-e CONFIG_GOOGLE_LANGUAGUE="en" \
|
||||
-e CONFIG_GOOGLE_LANGUAGE="en" \
|
||||
-p 8080:8080 \
|
||||
librex/librex:latest
|
||||
```
|
||||
|
@ -72,7 +72,7 @@ services:
|
|||
- VERSION=docker
|
||||
- TZ="America/New_York"
|
||||
- CONFIG_GOOGLE_DOMAIN="com"
|
||||
- CONFIG_GOOGLE_LANGUAGUE="en"
|
||||
- CONFIG_GOOGLE_LANGUAGE="en"
|
||||
volumes:
|
||||
- ./nginx_logs:/var/log/nginx
|
||||
- ./php_logs:/var/log/php7
|
||||
|
|
|
@ -26,7 +26,7 @@ To run librex in a docker container, you can simply use the command:
|
|||
docker run -d --name librex \
|
||||
-e TZ="America/New_York" \
|
||||
-e CONFIG_GOOGLE_DOMAIN="com" \
|
||||
-e CONFIG_GOOGLE_LANGUAGUE="en" \
|
||||
-e CONFIG_GOOGLE_LANGUAGE="en" \
|
||||
-p 8080:8080 \
|
||||
librex/librex:latest
|
||||
```
|
||||
|
@ -50,7 +50,7 @@ services:
|
|||
- VERSION=docker
|
||||
- TZ="America/New_York"
|
||||
- CONFIG_GOOGLE_DOMAIN="com"
|
||||
- CONFIG_GOOGLE_LANGUAGUE="en"
|
||||
- CONFIG_GOOGLE_LANGUAGE="en"
|
||||
volumes:
|
||||
- ./nginx_logs:/var/log/nginx
|
||||
- ./php_logs:/var/log/php7
|
||||
|
@ -82,7 +82,7 @@ This docker image was developed with high configurability in mind, so here is th
|
|||
| Variables | Default | Examples | Description |
|
||||
|:----------|:-------------|:---------|:------|
|
||||
| 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_LANGUAGUE | "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_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_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 |
|
||||
|
@ -148,7 +148,7 @@ docker build https://github.com/hnhx/librex.git -t librex:latest
|
|||
```sh
|
||||
docker run -d --name librex \
|
||||
-e CONFIG_GOOGLE_DOMAIN="com" \
|
||||
-e CONFIG_GOOGLE_LANGUAGUE="en" \
|
||||
-e CONFIG_GOOGLE_LANGUAGE="en" \
|
||||
-p 8080:8080 \
|
||||
librex:latest
|
||||
```
|
||||
|
|
|
@ -20,7 +20,7 @@ export OPEN_SEARCH_HOST=${OPEN_SEARCH_HOST:-"127.0.0.1"}
|
|||
# Replace the 'config.php' script, which contains the most common search engine configurations, with these environment setups
|
||||
# These environment setups can be found in 'config.php', and the default configurations can be useful for most use cases
|
||||
export CONFIG_GOOGLE_DOMAIN=${CONFIG_GOOGLE_DOMAIN:-".com"}
|
||||
export CONFIG_GOOGLE_LANGUAGUE=${CONFIG_GOOGLE_LANGUAGUE:-"en"}
|
||||
export CONFIG_GOOGLE_LANGUAGE=${CONFIG_GOOGLE_LANGUAGE:-"en"}
|
||||
export CONFIG_INVIDIOUS_INSTANCE=${CONFIG_INVIDIOUS_INSTANCE:-"invidious.namazso.eu"}
|
||||
export CONFIG_HIDDEN_SERVICE_SEARCH=${CONFIG_HIDDEN_SERVICE_SEARCH:-false}
|
||||
export CONFIG_DISABLE_BITTORRENT_SEARCH=${CONFIG_DISABLE_BITTORRENT_SEARCH:-false}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
return (object) array(
|
||||
"google_domain" => "${CONFIG_GOOGLE_DOMAIN}",
|
||||
"google_language" => "${CONFIG_GOOGLE_LANGUAGUE}",
|
||||
"google_language" => "${CONFIG_GOOGLE_LANGUAGE}",
|
||||
"invidious_instance_for_video_results" => "${CONFIG_INVIDIOUS_INSTANCE}",
|
||||
|
||||
"disable_bittorent_search" => ${CONFIG_DISABLE_BITTORRENT_SEARCH},
|
||||
|
|
|
@ -12,7 +12,7 @@ ENV OPEN_SEARCH_HOST="http://127.0.0.1:${NGINX_PORT}"
|
|||
# Replace the 'config.php' script, which contains the most common search engine configurations, with these environment setups
|
||||
# These environment setups can be found in 'config.php', and the default configurations can be useful for most use cases
|
||||
ENV CONFIG_GOOGLE_DOMAIN="com"
|
||||
ENV CONFIG_GOOGLE_LANGUAGUE="en"
|
||||
ENV CONFIG_GOOGLE_LANGUAGE="en"
|
||||
ENV CONFIG_INVIDIOUS_INSTANCE="https://invidious.namazso.eu"
|
||||
ENV CONFIG_HIDDEN_SERVICE_SEARCH=false
|
||||
ENV CONFIG_DISABLE_BITTORRENT_SEARCH=false
|
||||
|
|
Loading…
Add table
Reference in a new issue