diff --git a/src/freedombone-app-searx b/src/freedombone-app-searx index a72a11cf..c71d544f 100755 --- a/src/freedombone-app-searx +++ b/src/freedombone-app-searx @@ -35,6 +35,7 @@ SHOW_ICANN_ADDRESS_ON_ABOUT=0 SEARX_REPO="https://github.com/asciimoo/searx" SEARX_COMMIT='80460be8f69cea5f15c9d5ddbb63e4e48fde2dd0' SEARX_PATH=/etc +SEARX_PORT=8888 SEARX_ONION_PORT=8094 SEARX_ONION_HOSTNAME= SEARX_LOGIN_TEXT=$"Search engine login" @@ -258,7 +259,7 @@ function create_searx_config { echo ' language : "all"'; echo ''; echo 'server:'; - echo ' port : 8888'; + echo " port : ${SEARX_PORT}"; echo ' bind_address : "127.0.0.1" # address to listen on'; echo " secret_key : \"${SEARX_SECRET_KEY}\""; echo " base_url : http://${SEARX_ONION_HOSTNAME}/"; @@ -965,7 +966,7 @@ function install_searx { echo ' location / {'; } >> /etc/nginx/sites-available/searx function_check nginx_limits nginx_limits searx '1M' - { echo ' proxy_pass http://localhost:8888;'; + { echo " proxy_pass http://localhost:${SEARX_PORT};"; echo " #auth_basic \"${SEARX_LOGIN_TEXT}\";"; echo ' #auth_basic_user_file /etc/nginx/.htpasswd;'; echo ' }';