This commit is contained in:
parent
c835ddd47a
commit
eb9a111664
2
.env
2
.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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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: <password>
|
||||
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
|
||||
|
2
diff.sh
2
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
|
||||
|
||||
|
@ -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 \
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/bash -e
|
||||
set -o pipefail
|
||||
|
||||
export NB_REPLICAS=1
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/bash -e
|
||||
set -o pipefail
|
||||
|
||||
export NB_REPLICAS=3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user