From b32340700b4f37369a1fbe67899cea4ca573cf18 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Fri, 2 Jan 2026 16:03:42 -0500 Subject: [PATCH] Updating SearXNG config. --- app-configs/rinoa/searxng/settings.yml.j2 | 285 +++++++++------------- 1 file changed, 120 insertions(+), 165 deletions(-) diff --git a/app-configs/rinoa/searxng/settings.yml.j2 b/app-configs/rinoa/searxng/settings.yml.j2 index 57694f1..9d83f1a 100644 --- a/app-configs/rinoa/searxng/settings.yml.j2 +++ b/app-configs/rinoa/searxng/settings.yml.j2 @@ -1,5 +1,6 @@ {% set vault_addr = 'https://vault.trez.wtf' %} {% set secrets_path = 'rinoa-docker/env' %} + general: # Debug mode, only for development. Is overwritten by ${SEARXNG_DEBUG} debug: false @@ -16,7 +17,6 @@ general: enable_metrics: true # expose stats in open metrics format at /metrics # leave empty to disable (no password set) - # open_metrics: open_metrics: '' brand: @@ -25,87 +25,35 @@ brand: public_instances: https://searx.space wiki_url: https://github.com/searxng/searxng/wiki issue_url: https://github.com/searxng/searxng/issues - # custom: - # maintainer: "Jon Doe" - # # Custom entries in the footer: [title]: [link] - # links: - # Uptime: https://uptime.searxng.org/history/darmarit-org - # About: "https://searxng.org" search: - # Filter results. 0: None, 1: Moderate, 2: Strict safe_search: 0 - # Existing autocomplete backends: "360search", "baidu", "brave", "dbpedia", "duckduckgo", "google", "yandex", - # "mwmbl", "naver", "seznam", "sogou", "startpage", "stract", "swisscows", "quark", "qwant", "wikipedia" - - # leave blank to turn it off by default. autocomplete: "" - # 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" - # max_page: 0 # if engine supports paging, 0 means unlimited numbers of pages - # Available languages - # languages: - # - all - # - en - # - en-US - # - de - # - it-IT - # - fr - # - fr-BE - # ban time in seconds after engine errors ban_time_on_fail: 5 - # max ban time in seconds after engine errors max_ban_time_on_fail: 120 suspended_times: - # Engine suspension time after error (in seconds; set to 0 to disable) - # For error "Access denied" and "HTTP error [402, 403]" SearxEngineAccessDenied: 86400 - # For error "CAPTCHA" SearxEngineCaptcha: 86400 - # For error "Too many request" and "HTTP error 429" SearxEngineTooManyRequests: 3600 - # Cloudflare CAPTCHA cf_SearxEngineCaptcha: 1296000 cf_SearxEngineAccessDenied: 86400 - # ReCAPTCHA recaptcha_SearxEngineCaptcha: 604800 - - # remove format to deny access, use lower case. - # formats: [html, csv, json, rss] formats: - html server: - # Is overwritten by ${SEARXNG_PORT} and ${SEARXNG_BIND_ADDRESS} port: 8888 bind_address: "127.0.0.1" - # public URL of the instance, to ensure correct inbound links. Is overwritten - # by ${SEARXNG_BASE_URL}. - base_url: false # "http://example.com/location" - # rate limit the number of request on the instance, block some bots. - # Is overwritten by ${SEARXNG_LIMITER} + base_url: false limiter: false - # enable features designed only for public instances. - # Is overwritten by ${SEARXNG_PUBLIC_INSTANCE} public_instance: false - # If your instance owns a /etc/searxng/settings.yml file, then set the following - # values there. - secret_key: {{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token)['secret']['SEARXNG_SECRET_KEY'] }} # Is overwritten by ${SEARXNG_SECRET} - # Proxy image results through SearXNG. Is overwritten by ${SEARXNG_IMAGE_PROXY} image_proxy: true - # 1.0 and 1.1 are supported http_protocol_version: "1.0" - # POST queries are "more secure!" but are also the source of hard-to-locate - # annoyances, which is why GET may be better for end users and their browsers. - # see https://github.com/searxng/searxng/pull/3619 - # Is overwritten by ${SEARXNG_METHOD} method: "POST" default_http_headers: X-Content-Type-Options: nosniff @@ -114,41 +62,20 @@ server: Referrer-Policy: no-referrer valkey: - # URL to connect valkey database. Is overwritten by ${SEARXNG_VALKEY_URL}. - # https://docs.searxng.org/admin/settings/settings_valkey.html#settings-valkey - # url: valkey://localhost:6379/0 url: redis://searxng-valkey:6379/0 ui: - # Custom static path - leave it blank if you didn't change static_path: "" - # Custom templates path - leave it blank if you didn't change templates_path: "" - # query_in_title: When true, the result page's titles contains the query - # it decreases the privacy, since the browser can records the page titles. query_in_title: true - # infinite_scroll: When true, automatically loads the next page when scrolling to bottom of the current page. infinite_scroll: true - # ui theme default_theme: simple - # center the results ? center_alignment: false - # URL prefix of the internet archive, don't forget trailing slash (if needed). - # cache_url: "https://webcache.googleusercontent.com/search?q=cache:" - # Default interface locale - leave blank to detect from browser information or - # use codes from the 'locales' config section default_locale: "" - # Open result links in a new tab by default - # results_on_new_tab: false theme_args: - # style of simple theme: auto, light, dark simple_style: auto - # Perform search immediately if a category selected. - # Disable to select multiple categories at once and start the search manually. search_on_category_select: true - # Hotkeys: default or vim hotkeys: default - # URL formatting: pretty, full or host url_formatting: pretty # Lock arbitrary settings on the preferences page. @@ -165,7 +92,6 @@ ui: # - locale # - theme # - results_on_new_tab -# - infinite_scroll # - search_on_category_select # - method # - image_proxy @@ -217,6 +143,7 @@ outgoing: # - 1.1.1.2 # - fe80::/126 + # Plugin configuration, for more details see # https://docs.searxng.org/admin/settings/settings_plugins.html # @@ -225,6 +152,9 @@ plugins: searx.plugins.calculator.SXNGPlugin: active: true + searx.plugins.infinite_scroll.SXNGPlugin: + active: false + searx.plugins.hash_plugin.SXNGPlugin: active: true @@ -390,25 +320,6 @@ engines: timeout: 6 disabled: true - - name: alexandria - engine: json_engine - shortcut: alx - categories: general - paging: true - search_url: https://api.alexandria.org/?a=1&q={query}&p={pageno} - results_query: results - title_query: title - url_query: url - content_query: snippet - timeout: 1.5 - disabled: true - about: - website: https://alexandria.org/ - official_api_documentation: https://github.com/alexandria-org/alexandria-api/raw/master/README.md - use_official_api: true - require_api_key: false - results: JSON - - name: astrophysics data system engine: astrophysics_data_system shortcut: ads @@ -498,6 +409,15 @@ engines: shortcut: ask disabled: true + # - name: azure + # engine: azure + # shortcut: az + # categories: [it, cloud] + # azure_tenant_id: "your_tenant_id" + # azure_client_id: "your_client_id" + # azure_client_secret: "your_client_secret" + # disabled: true + # tmp suspended: dh key too small # - name: base # engine: base @@ -667,12 +587,6 @@ engines: api_key: "" inactive: true - # - name: cppreference - # engine: cppreference - # shortcut: cpp - # paging: false - # disabled: true - - name: crossref engine: crossref shortcut: cr @@ -736,6 +650,11 @@ engines: shortcut: da timeout: 3.0 + - name: devicons + engine: devicons + shortcut: di + timeout: 3.0 + - name: ddg definitions engine: duckduckgo_definitions shortcut: ddd @@ -1072,6 +991,12 @@ engines: play_categ: movies disabled: true + - name: grokipedia + engine: grokipedia + shortcut: gp + disabled: true + inactive: true + - name: material icons engine: material_icons shortcut: mi @@ -1300,6 +1225,11 @@ engines: require_api_key: false results: HTML + - name: lucide + engine: lucide + shortcut: luc + timeout: 3.0 + - name: marginalia engine: marginalia shortcut: mar @@ -1434,22 +1364,6 @@ engines: require_api_key: false results: JSON - # https://docs.searxng.org/dev/engines/online/mullvad_leta.html - - name: mullvadleta - engine: mullvad_leta - disabled: true - leta_engine: google - categories: [general, web] - shortcut: ml - - - name: mullvadleta brave - engine: mullvad_leta - network: mullvadleta - disabled: true - leta_engine: brave - categories: [general, web] - shortcut: mlb - - name: odysee engine: odysee shortcut: od @@ -1640,6 +1554,7 @@ engines: engine: pixiv disabled: true inactive: true + remove_ai_images: false pixiv_image_proxies: - https://pximg.example.org # A proxy is required to load the images. Hosting an image proxy server @@ -2134,22 +2049,21 @@ engines: search_type: web shortcut: yd disabled: true - inactive: true - name: yandex images engine: yandex + network: yandex categories: images search_type: images shortcut: ydi disabled: true - inactive: true - name: yandex music engine: yandex_music + network: yandex shortcut: ydm disabled: true # https://yandex.com/support/music/access.html - inactive: true - name: yahoo engine: yahoo @@ -2298,31 +2212,27 @@ engines: - name: wikicommons.images engine: wikicommons - shortcut: wc + shortcut: wci categories: images - search_type: images - number_of_results: 10 + wc_search_type: image - name: wikicommons.videos engine: wikicommons shortcut: wcv categories: videos - search_type: videos - number_of_results: 10 + wc_search_type: video - name: wikicommons.audio engine: wikicommons shortcut: wca categories: music - search_type: audio - number_of_results: 10 + wc_search_type: audio - name: wikicommons.files engine: wikicommons shortcut: wcf categories: files - search_type: files - number_of_results: 10 + wc_search_type: file - name: wolframalpha shortcut: wa @@ -2681,43 +2591,10 @@ engines: - name: sourcehut shortcut: srht - engine: xpath - paging: true - search_url: https://sr.ht/projects?page={pageno}&search={query} - results_xpath: (//div[@class="event-list"])[1]/div[@class="event"] - url_xpath: ./h4/a[2]/@href - title_xpath: ./h4/a[2] - content_xpath: ./p - first_page_num: 1 - categories: [it, repos] + engine: sourcehut + # https://docs.searxng.org/dev/engines/online/sourcehut.html + # sourcehut_sort_order: longest-active disabled: true - about: - website: https://sr.ht - wikidata_id: Q78514485 - official_api_documentation: https://man.sr.ht/ - use_official_api: false - require_api_key: false - results: HTML - - - name: goo - shortcut: goo - engine: xpath - paging: true - search_url: https://search.goo.ne.jp/web.jsp?MT={query}&FR={pageno}0 - url_xpath: //div[@class="result"]/p[@class='title fsL1']/a/@href - title_xpath: //div[@class="result"]/p[@class='title fsL1']/a - content_xpath: //p[contains(@class,'url fsM')]/following-sibling::p - first_page_num: 0 - categories: [general, web] - disabled: true - timeout: 4.0 - about: - website: https://search.goo.ne.jp - wikidata_id: Q249044 - use_official_api: false - require_api_key: false - results: HTML - language: ja - name: bt4g engine: bt4g @@ -2746,6 +2623,84 @@ engines: website: https://minecraft.wiki/ wikidata_id: Q105533483 +# Doku engine lets you access to any Doku wiki instance: +# A public one or a privete/corporate one. +# - name: ubuntuwiki +# engine: doku +# shortcut: uw +# base_url: 'https://doc.ubuntu-fr.org' + +# Be careful when enabling this engine if you are +# running a public instance. Do not expose any sensitive +# information. You can restrict access by configuring a list +# of access tokens under tokens. +# - name: git grep +# engine: command +# command: ['git', 'grep', '{{QUERY}}'] +# shortcut: gg +# tokens: [] +# disabled: true +# delimiter: +# chars: ':' +# keys: ['filepath', 'code'] + +# Be careful when enabling this engine if you are +# running a public instance. Do not expose any sensitive +# information. You can restrict access by configuring a list +# of access tokens under tokens. +# - name: locate +# engine: command +# command: ['locate', '{{QUERY}}'] +# shortcut: loc +# tokens: [] +# disabled: true +# delimiter: +# chars: ' ' +# keys: ['line'] + +# Be careful when enabling this engine if you are +# running a public instance. Do not expose any sensitive +# information. You can restrict access by configuring a list +# of access tokens under tokens. +# - name: find +# engine: command +# command: ['find', '.', '-name', '{{QUERY}}'] +# query_type: path +# shortcut: fnd +# tokens: [] +# disabled: true +# delimiter: +# chars: ' ' +# keys: ['line'] + +# Be careful when enabling this engine if you are +# running a public instance. Do not expose any sensitive +# information. You can restrict access by configuring a list +# of access tokens under tokens. +# - name: pattern search in files +# engine: command +# command: ['fgrep', '{{QUERY}}'] +# shortcut: fgr +# tokens: [] +# disabled: true +# delimiter: +# chars: ' ' +# keys: ['line'] + +# Be careful when enabling this engine if you are +# running a public instance. Do not expose any sensitive +# information. You can restrict access by configuring a list +# of access tokens under tokens. +# - name: regex search in files +# engine: command +# command: ['grep', '{{QUERY}}'] +# shortcut: gr +# tokens: [] +# disabled: true +# delimiter: +# chars: ' ' +# keys: ['line'] + doi_resolvers: oadoi.org: 'https://oadoi.org/' doi.org: 'https://doi.org/'