From 4a814dabf3fb373e639d230f214ca438f29f8b2d Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 12 Jun 2021 20:46:07 +0200 Subject: [PATCH] [yamllint] ./utils/templates/etc/searx/*.yml Signed-off-by: Markus Heiser --- manage | 2 +- .../etc/searx/use_default_settings.yml | 43 ++++++++++++------- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/manage b/manage index c9b70bf9f..631fe926a 100755 --- a/manage +++ b/manage @@ -32,7 +32,7 @@ pylint.FILES() { YAMLLINT_FILES=() while IFS= read -r line; do YAMLLINT_FILES+=("$line") -done <<< "$(git ls-files './tests/*.yml' './searx/*.yml')" +done <<< "$(git ls-files './tests/*.yml' './searx/*.yml' './utils/templates/etc/searx/*.yml')" PYLINT_SEARX_DISABLE_OPTION="\ I,C,R,\ diff --git a/utils/templates/etc/searx/use_default_settings.yml b/utils/templates/etc/searx/use_default_settings.yml index 845e3139f..f805373fe 100644 --- a/utils/templates/etc/searx/use_default_settings.yml +++ b/utils/templates/etc/searx/use_default_settings.yml @@ -1,23 +1,34 @@ -use_default_settings: True +use_default_settings: true general: - debug : False # Debug mode, only for development - instance_name : "searx" # displayed name + debug: false # Debug mode, only for development + instance_name: "searxng" # displayed name + contact_url: false # mailto:contact@example.com search: - safe_search : 0 # Filter results. 0: None, 1: Moderate, 2: Strict - autocomplete : "" # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "startpage", "swisscows", "qwant", "wikipedia" - leave blank to turn it off by default - default_lang : "" # Default search language - leave blank to detect from browser information or use codes from 'languages.py' - formats: [html, csv, json, rss] + # Filter results. 0: None, 1: Moderate, 2: Strict + safe_search: 0 + # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", + # "startpage", "swisscows", "qwant", "wikipedia" - leave blank to turn it off + # by default. + autocomplete: "" + # Default search language - leave blank to detect from browser information or + # use codes from 'languages.py' + default_lang: "" + # remove format to deny access, use lower case. + formats: [html, csv, json, rss] server: - port : 8888 - bind_address : "127.0.0.1" # address to listen on - secret_key : "ultrasecretkey" # change this! - base_url : False # Set custom base_url. Possible values: False or "https://your.custom.host/location/" - image_proxy : False # Proxying image results through searx + port: 8888 + # address to listen on + bind_address: "127.0.0.1" + secret_key: "ultrasecretkey" # change this! + # Set custom base_url. Possible values: + # false or "https://your.custom.host/location/" + base_url: https://darmarit.org/searx + # Proxying image results through searx + image_proxy: false -# uncomment below section if you have running morty proxy -#result_proxy: -# url : http://127.0.0.1:3000/ -# key : !!binary "your_morty_proxy_key" +# result_proxy: +# url: http://127.0.0.1:3000/ +# key: !!binary "your_morty_proxy_key"