Browse Source

Update 'src/freedombone-app-searx'

free 6 years ago
parent
commit
d586db4fae
1 changed files with 19 additions and 6 deletions
  1. 19
    6
      src/freedombone-app-searx

+ 19
- 6
src/freedombone-app-searx View File

@@ -32,7 +32,7 @@ IN_DEFAULT_INSTALL=0
32 32
 SHOW_ON_ABOUT=1
33 33
 SHOW_ICANN_ADDRESS_ON_ABOUT=0
34 34
 
35
-SEARX_REPO="https://github.com/asciimoo/searx"
35
+SEARX_REPO="https://git.abolivier.bzh/free/searx"
36 36
 SEARX_COMMIT='80460be8f69cea5f15c9d5ddbb63e4e48fde2dd0'
37 37
 SEARX_PATH=/etc
38 38
 SEARX_PORT=8888
@@ -256,21 +256,21 @@ function create_searx_config {
256 256
       echo 'search:';
257 257
       echo '    safe_search : 0 # Filter results. 0: None, 1: Moderate, 2: Strict';
258 258
       echo '    autocomplete : "" # Existing autocomplete backends: "dbpedia", "duckduckgo", "startpage", "wikipedia" - leave blank to turn it off by default';
259
-      echo '    language : "all"';
259
+      echo '    language : "en-US"';
260 260
       echo '';
261 261
       echo 'server:';
262 262
       echo "    port : ${SEARX_PORT}";
263 263
       echo '    bind_address : "127.0.0.1" # address to listen on';
264 264
       echo "    secret_key : \"${SEARX_SECRET_KEY}\"";
265 265
       echo "    base_url : http://${SEARX_ONION_HOSTNAME}/";
266
-      echo '    image_proxy : True # Proxying image results through searx';
266
+      echo '    image_proxy : False # Proxying image results through searx';
267 267
       echo '    http_protocol_version : "1.1"  # 1.0 and 1.1 are supported';
268 268
       echo '';
269 269
       echo 'ui:';
270 270
       echo '    static_path : "" # Custom static path - leave it blank if you didnt change';
271 271
       echo '    templates_path : "" # Custom templates path - leave it blank if you didnt change';
272 272
       echo '    themes_path : "" # Custom ui themes path';
273
-      echo '    default_theme : courgette # ui theme';
273
+      echo '    default_theme : oscar # ui theme';
274 274
       echo '    default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the "locales" config section';
275 275
       echo '';
276 276
       echo 'outgoing: # communication with search engines';
@@ -286,6 +286,12 @@ function create_searx_config {
286 286
       echo '    engine : archlinux';
287 287
       echo '    categories : general';
288 288
       echo '    shortcut : al';
289
+      echo '    disabled : True';
290
+      echo '';
291
+      echo '  - name : google';
292
+      echo '    engine : google';
293
+      echo '    shortcut : go';
294
+      echo '    disabled : True';
289 295
       echo '';
290 296
       echo '  - name : archive is';
291 297
       echo '    engine : xpath';
@@ -339,6 +345,7 @@ function create_searx_config {
339 345
       echo '    content_query : fullCitation';
340 346
       echo '    categories : science';
341 347
       echo '    shortcut : cr';
348
+      echo '    disabled : True';
342 349
       echo '';
343 350
       echo '  - name : currency';
344 351
       echo '    engine : currency_convert';
@@ -358,7 +365,7 @@ function create_searx_config {
358 365
       echo '    engine : duckduckgo_definitions';
359 366
       echo '    shortcut : ddd';
360 367
       echo '    weight : 2';
361
-      echo '    disabled : True';
368
+      echo '    disabled : False';
362 369
       echo '';
363 370
       echo '  - name : digbt';
364 371
       echo '    engine : digbt';
@@ -404,6 +411,8 @@ function create_searx_config {
404 411
       echo '  - name : 500px';
405 412
       echo '    engine : www500px';
406 413
       echo '    shortcut : px';
414
+      echo '    disabled : True';
415
+
407 416
       echo '';
408 417
       echo '  - name : 1x';
409 418
       echo '    engine : www1x';
@@ -561,6 +570,7 @@ function create_searx_config {
561 570
       echo '    shortcut : tpb';
562 571
       echo '    url: https://pirateproxy.red/';
563 572
       echo '    timeout : 3.0';
573
+      echo '    disabled : True';
564 574
       echo '';
565 575
       echo '  - name : qwant';
566 576
       echo '    engine : qwant';
@@ -638,12 +648,13 @@ function create_searx_config {
638 648
       echo '# The language is an option. You can put any language written in english';
639 649
       echo '# Examples : English, French, German, Hungarian, Chinese...';
640 650
       echo '#    language : English';
651
+      echo '    disabled : True';
641 652
       echo '';
642 653
       echo '  - name : startpage';
643 654
       echo '    engine : startpage';
644 655
       echo '    shortcut : sp';
645 656
       echo '    timeout : 6.0';
646
-      echo '    disabled : True';
657
+      echo '    disabled : False';
647 658
       echo '';
648 659
       echo '  - name : ixquick';
649 660
       echo '    engine : startpage';
@@ -651,6 +662,7 @@ function create_searx_config {
651 662
       echo "    search_url : 'https://www.ixquick.eu/do/search'";
652 663
       echo '    shortcut : iq';
653 664
       echo '    timeout : 6.0';
665
+      echo '    disabled : True';
654 666
       echo '';
655 667
       echo '  - name : swisscows';
656 668
       echo '    engine : swisscows';
@@ -674,6 +686,7 @@ function create_searx_config {
674 686
       echo '    title_xpath   : //*[@class="def-header"]';
675 687
       echo '    content_xpath : //*[@class="meaning"]';
676 688
       echo '    shortcut : ud';
689
+      echo '    disabled : True';
677 690
       echo '';
678 691
       echo '  - name : yandex';
679 692
       echo '    engine : yandex';