searx port

This commit is contained in:
Bob Mottram 2018-04-22 18:34:53 +01:00
parent 733fd67af9
commit ac078c1b2d
1 changed files with 3 additions and 2 deletions

View File

@ -35,6 +35,7 @@ SHOW_ICANN_ADDRESS_ON_ABOUT=0
SEARX_REPO="https://github.com/asciimoo/searx" SEARX_REPO="https://github.com/asciimoo/searx"
SEARX_COMMIT='80460be8f69cea5f15c9d5ddbb63e4e48fde2dd0' SEARX_COMMIT='80460be8f69cea5f15c9d5ddbb63e4e48fde2dd0'
SEARX_PATH=/etc SEARX_PATH=/etc
SEARX_PORT=8888
SEARX_ONION_PORT=8094 SEARX_ONION_PORT=8094
SEARX_ONION_HOSTNAME= SEARX_ONION_HOSTNAME=
SEARX_LOGIN_TEXT=$"Search engine login" SEARX_LOGIN_TEXT=$"Search engine login"
@ -258,7 +259,7 @@ function create_searx_config {
echo ' language : "all"'; echo ' language : "all"';
echo ''; echo '';
echo 'server:'; echo 'server:';
echo ' port : 8888'; echo " port : ${SEARX_PORT}";
echo ' bind_address : "127.0.0.1" # address to listen on'; echo ' bind_address : "127.0.0.1" # address to listen on';
echo " secret_key : \"${SEARX_SECRET_KEY}\""; echo " secret_key : \"${SEARX_SECRET_KEY}\"";
echo " base_url : http://${SEARX_ONION_HOSTNAME}/"; echo " base_url : http://${SEARX_ONION_HOSTNAME}/";
@ -965,7 +966,7 @@ function install_searx {
echo ' location / {'; } >> /etc/nginx/sites-available/searx echo ' location / {'; } >> /etc/nginx/sites-available/searx
function_check nginx_limits function_check nginx_limits
nginx_limits searx '1M' 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 \"${SEARX_LOGIN_TEXT}\";";
echo ' #auth_basic_user_file /etc/nginx/.htpasswd;'; echo ' #auth_basic_user_file /etc/nginx/.htpasswd;';
echo ' }'; echo ' }';