Bob Mottram 6 yıl önce
ebeveyn
işleme
ac078c1b2d
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3
    2
      src/freedombone-app-searx

+ 3
- 2
src/freedombone-app-searx Dosyayı Görüntüle

@@ -35,6 +35,7 @@ SHOW_ICANN_ADDRESS_ON_ABOUT=0
35 35
 SEARX_REPO="https://github.com/asciimoo/searx"
36 36
 SEARX_COMMIT='80460be8f69cea5f15c9d5ddbb63e4e48fde2dd0'
37 37
 SEARX_PATH=/etc
38
+SEARX_PORT=8888
38 39
 SEARX_ONION_PORT=8094
39 40
 SEARX_ONION_HOSTNAME=
40 41
 SEARX_LOGIN_TEXT=$"Search engine login"
@@ -258,7 +259,7 @@ function create_searx_config {
258 259
       echo '    language : "all"';
259 260
       echo '';
260 261
       echo 'server:';
261
-      echo '    port : 8888';
262
+      echo "    port : ${SEARX_PORT}";
262 263
       echo '    bind_address : "127.0.0.1" # address to listen on';
263 264
       echo "    secret_key : \"${SEARX_SECRET_KEY}\"";
264 265
       echo "    base_url : http://${SEARX_ONION_HOSTNAME}/";
@@ -965,7 +966,7 @@ function install_searx {
965 966
       echo '    location / {'; } >> /etc/nginx/sites-available/searx
966 967
     function_check nginx_limits
967 968
     nginx_limits searx '1M'
968
-    { echo '        proxy_pass http://localhost:8888;';
969
+    { echo "        proxy_pass http://localhost:${SEARX_PORT};";
969 970
       echo "        #auth_basic \"${SEARX_LOGIN_TEXT}\";";
970 971
       echo '        #auth_basic_user_file /etc/nginx/.htpasswd;';
971 972
       echo '    }';