From eb9a111664c5ccfc51a705183398242ab5321d40 Mon Sep 17 00:00:00 2001 From: ange Date: Sun, 22 Dec 2024 07:33:37 +0000 Subject: [PATCH] bump: 2024.12.20-19ee529b7 --- .env | 2 +- config/limiter.toml | 2 +- config/settings.yml | 76 +++++++++++++++++++++++++++++++---------- diff.sh | 2 +- manifests/bin/deploy.sh | 23 +++++++------ manifests/bin/devel.sh | 1 + manifests/bin/prod.sh | 1 + 7 files changed, 76 insertions(+), 31 deletions(-) diff --git a/.env b/.env index 2c31c60..6f3bed0 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ PROD_URL=searx.gmoker.com -IMAGEAPP=docker.io/searxng/searxng:2024.9.26-6a3375be3 +IMAGEAPP=docker.io/searxng/searxng:2024.12.20-19ee529b7 diff --git a/config/limiter.toml b/config/limiter.toml index 3be8d16..d8bf16d 100644 --- a/config/limiter.toml +++ b/config/limiter.toml @@ -12,7 +12,7 @@ ipv6_prefix = 48 [botdetection.ip_limit] -# To get unlimited access in a local network, by default link-lokal addresses +# To get unlimited access in a local network, by default link-local addresses # (networks) are not monitored by the ip_limit filter_link_local = false diff --git a/config/settings.yml b/config/settings.yml index 187b99a..6f76f3b 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -12,6 +12,10 @@ general: contact_url: false # record stats enable_metrics: true + # expose stats in open metrics format at /metrics + # leave empty to disable (no password set) + # open_metrics: + open_metrics: '' brand: new_issue_url: https://github.com/searxng/searxng/issues/new @@ -35,6 +39,9 @@ search: autocomplete: "brave" # minimun characters to type before autocompleter starts autocomplete_min: 4 + # backend for the favicon near URL in search results. + # Available resolvers: "allesedv", "duckduckgo", "google", "yandex" - leave blank to turn it off by default. + favicon_resolver: "" # Default search language - leave blank to detect from browser information or # use codes from 'languages.py' default_lang: "auto" @@ -133,6 +140,8 @@ ui: search_on_category_select: true # Hotkeys: default or vim hotkeys: vim + # URL formatting: pretty, full or host + url_formatting: pretty # Lock arbitrary settings on the preferences page. To find the ID of the user # setting you want to lock, check the ID of the form on the page "preferences". @@ -218,15 +227,12 @@ enabled_plugins: - 'Hash plugin' - 'Self Information' - 'Tracker URL remover' + - 'Unit converter plugin' - 'Ahmia blacklist' # activation depends on outgoing.using_tor_proxy # # these plugins are disabled if nothing is configured .. - 'Hostnames plugin' # see 'hostnames' configuration below # - 'Open Access DOI rewrite' # - 'Tor check plugin' -# # Read the docs before activate: auto-detection of the language could be -# # detrimental to users expectations / users can activate the plugin in the -# # preferences if they want. - - 'Autodetect search language' # Configuration of the "Hostnames plugin": # @@ -298,6 +304,36 @@ engines: shortcut: 9g disabled: true + - name: adobe stock + engine: adobe_stock + shortcut: asi + categories: ["images"] + # https://docs.searxng.org/dev/engines/online/adobe_stock.html + adobe_order: relevance + adobe_content_types: ["photo", "illustration", "zip_vector", "template", "3d", "image"] + timeout: 6 + disabled: true + + - name: adobe stock video + engine: adobe_stock + shortcut: asv + network: adobe stock + categories: ["videos"] + adobe_order: relevance + adobe_content_types: ["video"] + timeout: 6 + disabled: true + + - name: adobe stock audio + engine: adobe_stock + shortcut: asa + network: adobe stock + categories: ["music"] + adobe_order: relevance + adobe_content_types: ["audio"] + timeout: 6 + disabled: true + - name: alpine linux packages engine: alpinelinux disabled: true @@ -383,7 +419,6 @@ engines: shortcut: wp # add "list" to the array to get results in the results list display_type: ["infobox"] - base_url: 'https://{language}.wikipedia.org/' categories: [general] - name: bilibili @@ -503,6 +538,8 @@ engines: url_query: link title_query: title content_query: snippet + title_html_to_text: true + content_html_to_text: true disabled: true about: website: https://crowdview.ai/ @@ -1251,6 +1288,12 @@ engines: require_api_key: false results: JSON + - name: openlibrary + engine: openlibrary + shortcut: ol + timeout: 5 + disabled: true + - name: openmeteo engine: open_meteo shortcut: om @@ -1587,11 +1630,6 @@ engines: api_site: 'askubuntu' categories: [it, q&a] - - name: internetarchivescholar - engine: internet_archive_scholar - shortcut: ias - timeout: 15.0 - - name: superuser engine: stackexchange shortcut: su @@ -2007,6 +2045,16 @@ engines: # query_str: 'SELECT * from mytable WHERE fieldname=%(query)s' # shortcut: mysql + # Required dependency: mariadb + # - name: mariadb + # engine: mariadb_server + # database: mydatabase + # username: user + # password: pass + # limit: 10 + # query_str: 'SELECT * from mytable WHERE fieldname=%(query)s' + # shortcut: mdb + - name: 1337x engine: 1337x shortcut: 1337x @@ -2164,7 +2212,6 @@ engines: - name: wordnik engine: wordnik shortcut: def - base_url: https://www.wordnik.com/ categories: [dictionaries] timeout: 5.0 @@ -2210,13 +2257,6 @@ engines: seekr_category: videos disabled: true - - name: sjp.pwn - engine: sjp - shortcut: sjp - base_url: https://sjp.pwn.pl/ - timeout: 5.0 - disabled: true - - name: stract engine: stract shortcut: str diff --git a/diff.sh b/diff.sh index 578dac1..c67ffb5 100755 --- a/diff.sh +++ b/diff.sh @@ -12,7 +12,7 @@ new_commit="$(grep -Eo '\w+$' <<< "$new_tag")" for f in limiter.toml settings.yml; do if curl -Lo "$tmp" "$REPO/$new_commit/searx/$f" && ! diff -Z "$tmp" "config/$f" > /dev/null; then - $EDITOR -d -c "wincmd l" -- "config/$f" "$tmp" + $EDITOR -d -c "wincmd l" -- "$tmp" "config/$f" fi done diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index 30847ed..a0213a1 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -3,32 +3,35 @@ set -o pipefail function kapply() { for f in "$@"; do - kubectl apply -f \ - <(envsubst "$(env | xargs printf '$%s ')" < "manifests/$f") + kubectl apply -f <(envsubst < "manifests/$f") done -} +}; export -f kapply function kcreatesec() { kubectl create secret generic --save-config --dry-run=client -oyaml "$@" | kubectl apply -f- -} +}; export -f kcreatesec function kcreatecm() { kubectl create configmap --dry-run=client -oyaml "$@" | kubectl apply -f- -} +}; export -f kcreatecm function kgseckey() { local sec="$1"; shift local key="$1"; shift - kubectl get secret "$sec" -o jsonpath="{.data.$key}" | base64 -d -} + if ! kubectl get secret "$sec" -ojson | jq -re ".data.\"$key\" // empty" | base64 -d; then + return 1 + fi +}; export -f kgseckey function kgcmkey() { - local cm="$1"; shift + local cm="$1"; shift local key="$1"; shift - kubectl get configmap "$cm" -o jsonpath="{.data.$key}" -} + if ! kubectl get configmap "$cm" -ojson | jq -re ".data.\"$key\" // empty"; then + return 1 + fi +}; export -f kgcmkey kcreatesec searxng \ diff --git a/manifests/bin/devel.sh b/manifests/bin/devel.sh index 464c4d0..65675aa 100755 --- a/manifests/bin/devel.sh +++ b/manifests/bin/devel.sh @@ -1,4 +1,5 @@ #!/bin/bash -e +set -o pipefail export NB_REPLICAS=1 diff --git a/manifests/bin/prod.sh b/manifests/bin/prod.sh index c97fc9e..b7b5f83 100755 --- a/manifests/bin/prod.sh +++ b/manifests/bin/prod.sh @@ -1,4 +1,5 @@ #!/bin/bash -e +set -o pipefail export NB_REPLICAS=3