From 5522695a4d28117f73182ce69e2335a0c49ce958 Mon Sep 17 00:00:00 2001 From: Haro Date: Mon, 30 Nov 2026 04:07:59 +0000 Subject: [PATCH] [UPDATE][searxngv3][1.1.14] After this upgrade, Wikipedia, Wikidata and OpenStreetMap stop working if SEARXNG_CONTACT_URL is blank. SearXNG 2026.11.28-d96f0ec9b adds NuGet search and makes Haro-Source: beclab/apps-preview@e3e3e1120229ec034e4eb422ff56f12ff0dd8d9a Haro-Target: 4887b02f94df821c5455b185968150ffca9fb7fb Haro-App: searxngv3 Haro-Event: e3e3e1120229ec034e4eb422ff56f12ff0dd8d9a Haro-Strategy: source_snapshot --- searxngv3/Chart.yaml | 4 +-- searxngv3/OlaresManifest.yaml | 32 ++++++++++++++--- searxngv3/i18n/de-DE/OlaresManifest.yaml | 28 +++++++++++++-- searxngv3/i18n/en-US/OlaresManifest.yaml | 28 +++++++++++++-- searxngv3/i18n/es-ES/OlaresManifest.yaml | 28 +++++++++++++-- searxngv3/i18n/fr-FR/OlaresManifest.yaml | 28 +++++++++++++-- searxngv3/i18n/it-IT/OlaresManifest.yaml | 28 +++++++++++++-- searxngv3/i18n/ja-JP/OlaresManifest.yaml | 28 +++++++++++++-- searxngv3/i18n/zh-CN/OlaresManifest.yaml | 28 +++++++++++++-- searxngv3/templates/_helpers.tpl | 28 +++++++++++++++ searxngv3/templates/deployment.yaml | 5 ++- searxngv3/templates/searxng-config.yaml | 44 +++++++++++++++++++++++- 12 files changed, 287 insertions(+), 22 deletions(-) create mode 100644 searxngv3/templates/_helpers.tpl diff --git a/searxngv3/Chart.yaml b/searxngv3/Chart.yaml index 49510cfb1..40b663228 100644 --- a/searxngv3/Chart.yaml +++ b/searxngv3/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -appVersion: "2026.11.5-3e95f6cd2" +appVersion: "2026.11.28-d96f0ec9b" description: description name: searxngv3 type: application -version: "1.1.13" \ No newline at end of file +version: "1.1.14" \ No newline at end of file diff --git a/searxngv3/OlaresManifest.yaml b/searxngv3/OlaresManifest.yaml index aa4732e71..164d8343a 100644 --- a/searxngv3/OlaresManifest.yaml +++ b/searxngv3/OlaresManifest.yaml @@ -7,7 +7,7 @@ metadata: description: Search without being tracked. appid: searxngv3 title: SearXNG - version: "1.1.13" + version: "1.1.14" categories: - Productivity_v112 - Utilities_v112 @@ -40,7 +40,7 @@ workloadReplicas: searxngv3: 1 spec: - versionName: "2026.11.5-3e95f6cd2" + versionName: "2026.11.28-d96f0ec9b" featuredImage: https://app.cdn.olares.com/appstore/searxng/1.webp promoteImage: - https://app.cdn.olares.com/appstore/searxng/1.webp @@ -71,9 +71,10 @@ spec: - professional development: CI, quality assurance & automated tested UI upgradeDescription: | - Upgrade SearXNG to 2026.11.5-3e95f6cd2. Updates the pinned upstream build and search engine definitions, including the Boardreader session-refresh fix. + After this upgrade, Wikipedia, Wikidata and OpenStreetMap stop working if SEARXNG_CONTACT_URL is blank. - Upstream changes: https://github.com/searxng/searxng/commit/3e95f6cd2 + SearXNG 2026.11.28-d96f0ec9b adds NuGet search and makes Brave web search inactive by default. SEARXNG_ENABLED_ENGINES and SEARXNG_DISABLED_ENGINES save your default engine choices across upgrades. + https://github.com/searxng/searxng/compare/3e95f6cd2...d96f0ec9b developer: SearXNG team website: https://docs.searxng.org/ @@ -121,3 +122,26 @@ options: - name: olares version: '>=1.12.6-0' type: system + +envs: + - envName: SEARXNG_ENABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Comma-separated SearXNG engine names (case-insensitive) to enable by default (e.g. bing). Configure any required API keys or other engine settings separately. An empty list adds no overrides. Disable takes precedence." + - envName: SEARXNG_DISABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Comma-separated SearXNG engine names (case-insensitive) to disable by default (e.g. duckduckgo, qwant). An empty list adds no overrides. Disable takes precedence." + - envName: SEARXNG_CONTACT_URL + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "After this upgrade, Wikipedia, Wikidata and OpenStreetMap stop working if SEARXNG_CONTACT_URL is blank. Set an administrator mailto: address or contact page URL suitable for publication. SearXNG displays it as a contact link and includes it in the User-Agent sent to Wikimedia." diff --git a/searxngv3/i18n/de-DE/OlaresManifest.yaml b/searxngv3/i18n/de-DE/OlaresManifest.yaml index f7532000b..6819d6ecf 100644 --- a/searxngv3/i18n/de-DE/OlaresManifest.yaml +++ b/searxngv3/i18n/de-DE/OlaresManifest.yaml @@ -27,6 +27,30 @@ spec: - professionelle Entwicklung: CI, Qualitätssicherung & automatisiert getestete UI upgradeDescription: | - Aktualisiert SearXNG auf 2026.11.5-3e95f6cd2. Aktualisiert den festgelegten Upstream-Build und die Suchmaschinen, einschließlich der Korrektur zur Boardreader-Sitzungserneuerung. + Nach diesem Update funktionieren Wikipedia, Wikidata und OpenStreetMap nicht mehr, wenn SEARXNG_CONTACT_URL leer bleibt. - Upstream-Änderungen: https://github.com/searxng/searxng/commit/3e95f6cd2 + SearXNG 2026.11.28-d96f0ec9b ergänzt die NuGet-Suche und deaktiviert die Brave-Websuche standardmäßig. SEARXNG_ENABLED_ENGINES und SEARXNG_DISABLED_ENGINES speichern die Standardauswahl über Updates hinweg. + https://github.com/searxng/searxng/compare/3e95f6cd2...d96f0ec9b + +envs: + - envName: SEARXNG_ENABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Standardmäßig aktivierte Suchmaschinen, durch Kommas getrennt. Schlüssel separat einrichten. Die Deaktivierung hat Vorrang." + - envName: SEARXNG_DISABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Standardmäßig deaktivierte Suchmaschinen, durch Kommas getrennt. Leer lassen, um keine zusätzlich zu deaktivieren." + - envName: SEARXNG_CONTACT_URL + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Nach diesem Update funktionieren Wikipedia, Wikidata und OpenStreetMap nicht mehr, wenn SEARXNG_CONTACT_URL leer bleibt. Geben Sie eine öffentliche mailto:-Adresse oder die URL einer Kontaktseite an. SearXNG zeigt sie als Kontaktlink an und verwendet sie im User-Agent für Wikimedia." diff --git a/searxngv3/i18n/en-US/OlaresManifest.yaml b/searxngv3/i18n/en-US/OlaresManifest.yaml index 59a75d3c1..b998f0d3c 100644 --- a/searxngv3/i18n/en-US/OlaresManifest.yaml +++ b/searxngv3/i18n/en-US/OlaresManifest.yaml @@ -27,6 +27,30 @@ spec: - professional development: CI, quality assurance & automated tested UI upgradeDescription: | - Upgrade SearXNG to 2026.11.5-3e95f6cd2. Updates the pinned upstream build and search engine definitions, including the Boardreader session-refresh fix. + After this upgrade, Wikipedia, Wikidata and OpenStreetMap stop working if SEARXNG_CONTACT_URL is blank. - Upstream changes: https://github.com/searxng/searxng/commit/3e95f6cd2 + SearXNG 2026.11.28-d96f0ec9b adds NuGet search and makes Brave web search inactive by default. SEARXNG_ENABLED_ENGINES and SEARXNG_DISABLED_ENGINES save your default engine choices across upgrades. + https://github.com/searxng/searxng/compare/3e95f6cd2...d96f0ec9b + +envs: + - envName: SEARXNG_ENABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Comma-separated SearXNG engine names (case-insensitive) to enable by default (e.g. bing). Configure any required API keys or other engine settings separately. An empty list adds no overrides. Disable takes precedence." + - envName: SEARXNG_DISABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Comma-separated SearXNG engine names (case-insensitive) to disable by default (e.g. duckduckgo, qwant). An empty list adds no overrides. Disable takes precedence." + - envName: SEARXNG_CONTACT_URL + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "After this upgrade, Wikipedia, Wikidata and OpenStreetMap stop working if SEARXNG_CONTACT_URL is blank. Set an administrator mailto: address or contact page URL suitable for publication. SearXNG displays it as a contact link and includes it in the User-Agent sent to Wikimedia." diff --git a/searxngv3/i18n/es-ES/OlaresManifest.yaml b/searxngv3/i18n/es-ES/OlaresManifest.yaml index 202ad0661..39c5dd345 100644 --- a/searxngv3/i18n/es-ES/OlaresManifest.yaml +++ b/searxngv3/i18n/es-ES/OlaresManifest.yaml @@ -27,6 +27,30 @@ spec: - desarrollo profesional: CI, aseguramiento de calidad y UI con pruebas automatizadas upgradeDescription: | - Actualiza SearXNG a 2026.11.5-3e95f6cd2. Actualiza la compilación fijada y los motores de búsqueda, incluida la corrección de renovación de sesión de Boardreader. + Tras esta actualización, Wikipedia, Wikidata y OpenStreetMap dejarán de funcionar si SEARXNG_CONTACT_URL está vacío. - Cambios del proyecto: https://github.com/searxng/searxng/commit/3e95f6cd2 + SearXNG 2026.11.28-d96f0ec9b incorpora la búsqueda en NuGet y desactiva por defecto la búsqueda web de Brave. SEARXNG_ENABLED_ENGINES y SEARXNG_DISABLED_ENGINES conservan la selección de motores al actualizar. + https://github.com/searxng/searxng/compare/3e95f6cd2...d96f0ec9b + +envs: + - envName: SEARXNG_ENABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Motores que se activan por defecto, separados por comas. Configura las claves por separado. Prevalece la lista de desactivación." + - envName: SEARXNG_DISABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Motores que se desactivan por defecto, separados por comas. Deja el campo vacío para no desactivar otros motores." + - envName: SEARXNG_CONTACT_URL + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Tras esta actualización, Wikipedia, Wikidata y OpenStreetMap dejarán de funcionar si SEARXNG_CONTACT_URL está vacío. Introduce una dirección mailto: pública o la URL de una página de contacto. SearXNG la muestra como enlace de contacto y la incluye en el User-Agent enviado a Wikimedia." diff --git a/searxngv3/i18n/fr-FR/OlaresManifest.yaml b/searxngv3/i18n/fr-FR/OlaresManifest.yaml index d9df6aa98..6f6614a4e 100644 --- a/searxngv3/i18n/fr-FR/OlaresManifest.yaml +++ b/searxngv3/i18n/fr-FR/OlaresManifest.yaml @@ -27,6 +27,30 @@ spec: - développement professionnel : CI, assurance qualité et UI testée automatiquement upgradeDescription: | - Met à jour SearXNG vers 2026.11.5-3e95f6cd2. Actualise la version fixée et les moteurs de recherche, avec le correctif de renouvellement de session Boardreader. + Après cette mise à jour, Wikipédia, Wikidata et OpenStreetMap cessent de fonctionner si SEARXNG_CONTACT_URL reste vide. - Modifications du projet : https://github.com/searxng/searxng/commit/3e95f6cd2 + SearXNG 2026.11.28-d96f0ec9b ajoute la recherche NuGet et désactive par défaut la recherche web Brave. SEARXNG_ENABLED_ENGINES et SEARXNG_DISABLED_ENGINES conservent le choix des moteurs lors des mises à jour. + https://github.com/searxng/searxng/compare/3e95f6cd2...d96f0ec9b + +envs: + - envName: SEARXNG_ENABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Moteurs à activer par défaut, séparés par des virgules. Configurez les clés séparément. La désactivation est prioritaire." + - envName: SEARXNG_DISABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Moteurs à désactiver par défaut, séparés par des virgules. Laissez vide pour ne désactiver aucun moteur supplémentaire." + - envName: SEARXNG_CONTACT_URL + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Après cette mise à jour, Wikipédia, Wikidata et OpenStreetMap cessent de fonctionner si SEARXNG_CONTACT_URL reste vide. Indiquez une adresse mailto: publique ou l’URL d’une page de contact. SearXNG l’affiche comme lien de contact et l’inclut dans le User-Agent envoyé à Wikimedia." diff --git a/searxngv3/i18n/it-IT/OlaresManifest.yaml b/searxngv3/i18n/it-IT/OlaresManifest.yaml index 299a7e756..f361996ec 100644 --- a/searxngv3/i18n/it-IT/OlaresManifest.yaml +++ b/searxngv3/i18n/it-IT/OlaresManifest.yaml @@ -27,6 +27,30 @@ spec: - sviluppo professionale: CI, quality assurance e UI testata automaticamente upgradeDescription: | - Aggiorna SearXNG a 2026.11.5-3e95f6cd2. Aggiorna la build fissata e i motori di ricerca, inclusa la correzione del rinnovo della sessione Boardreader. + Dopo questo aggiornamento, Wikipedia, Wikidata e OpenStreetMap smettono di funzionare se SEARXNG_CONTACT_URL è vuoto. - Modifiche del progetto: https://github.com/searxng/searxng/commit/3e95f6cd2 + SearXNG 2026.11.28-d96f0ec9b aggiunge la ricerca NuGet e disattiva per impostazione predefinita la ricerca web di Brave. SEARXNG_ENABLED_ENGINES e SEARXNG_DISABLED_ENGINES mantengono la scelta dei motori tra gli aggiornamenti. + https://github.com/searxng/searxng/compare/3e95f6cd2...d96f0ec9b + +envs: + - envName: SEARXNG_ENABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Motori da attivare per impostazione predefinita, separati da virgole. Configura le chiavi separatamente. La disattivazione ha la precedenza." + - envName: SEARXNG_DISABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Motori da disattivare per impostazione predefinita, separati da virgole. Lascia vuoto per non disattivare altri motori." + - envName: SEARXNG_CONTACT_URL + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "Dopo questo aggiornamento, Wikipedia, Wikidata e OpenStreetMap smettono di funzionare se SEARXNG_CONTACT_URL è vuoto. Inserisci un indirizzo mailto: pubblico o l’URL di una pagina di contatto. SearXNG lo mostra come link di contatto e lo include nello User-Agent inviato a Wikimedia." diff --git a/searxngv3/i18n/ja-JP/OlaresManifest.yaml b/searxngv3/i18n/ja-JP/OlaresManifest.yaml index 9a3a8c071..25ef2e8d2 100644 --- a/searxngv3/i18n/ja-JP/OlaresManifest.yaml +++ b/searxngv3/i18n/ja-JP/OlaresManifest.yaml @@ -27,6 +27,30 @@ spec: - プロフェッショナルな開発: CI、品質保証、自動テスト UI upgradeDescription: | - SearXNG を 2026.11.5-3e95f6cd2 に更新します。固定した上流ビルドと検索エンジン定義を更新し、Boardreader のセッション更新を修正します。 + このバージョンから、SEARXNG_CONTACT_URL が空欄の場合、Wikipedia、Wikidata、OpenStreetMap は利用できなくなります。 - 上流の変更: https://github.com/searxng/searxng/commit/3e95f6cd2 + SearXNG 2026.11.28-d96f0ec9b では NuGet 検索を追加し、Brave のウェブ検索を既定で無効にしました。SEARXNG_ENABLED_ENGINES と SEARXNG_DISABLED_ENGINES で指定した既定の検索エンジンは更新後も保持されます。 + https://github.com/searxng/searxng/compare/3e95f6cd2...d96f0ec9b + +envs: + - envName: SEARXNG_ENABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "既定で有効にするエンジン名を半角コンマで区切ります。必要なキーは別途設定してください。無効リストが優先されます。" + - envName: SEARXNG_DISABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "既定で無効にするエンジン名を半角コンマで区切ります。空欄の場合、追加の無効化は行いません。" + - envName: SEARXNG_CONTACT_URL + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "このバージョンから、SEARXNG_CONTACT_URL が空欄の場合、Wikipedia、Wikidata、OpenStreetMap は利用できなくなります。公開可能な管理者のメールアドレス(mailto: 形式)または問い合わせページの URL を入力してください。SearXNG はこの値を連絡先リンクとして表示し、Wikimedia に送る User-Agent にも含めます。" diff --git a/searxngv3/i18n/zh-CN/OlaresManifest.yaml b/searxngv3/i18n/zh-CN/OlaresManifest.yaml index 2814056cc..bedc4ea5c 100644 --- a/searxngv3/i18n/zh-CN/OlaresManifest.yaml +++ b/searxngv3/i18n/zh-CN/OlaresManifest.yaml @@ -27,6 +27,30 @@ spec: - 专业开发:持续集成、质量保证和自动化测试的用户界面 upgradeDescription: | - 将 SearXNG 升级至 2026.11.5-3e95f6cd2。更新固定的上游构建及搜索引擎定义,包含 Boardreader 会话刷新修复。 + 从此版本开始,若 SEARXNG_CONTACT_URL 留空,Wikipedia、Wikidata 和 OpenStreetMap 将停止工作。 - 上游变更:https://github.com/searxng/searxng/commit/3e95f6cd2 + SearXNG 升级至 2026.11.28-d96f0ec9b,新增 NuGet 搜索,Brave 网页搜索默认停用。通过 SEARXNG_ENABLED_ENGINES 和 SEARXNG_DISABLED_ENGINES 配置的默认引擎会在升级后保留。 + https://github.com/searxng/searxng/compare/3e95f6cd2...d96f0ec9b + +envs: + - envName: SEARXNG_ENABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "默认启用的引擎名,用英文逗号分隔。所需密钥须另行配置;与关闭列表重名时,关闭优先。" + - envName: SEARXNG_DISABLED_ENGINES + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "默认关闭的引擎名,用英文逗号分隔。留空表示不额外关闭引擎。" + - envName: SEARXNG_CONTACT_URL + type: string + required: false + default: "" + editable: true + applyOnChange: true + description: "从此版本开始,若 SEARXNG_CONTACT_URL 留空,Wikipedia、Wikidata 和 OpenStreetMap 将停止工作。请填写可公开的管理员邮箱链接(mailto:)或联系页面网址。SearXNG 会在页面上显示此联系链接,并在发给 Wikimedia 的 User-Agent 中包含该地址。" diff --git a/searxngv3/templates/_helpers.tpl b/searxngv3/templates/_helpers.tpl new file mode 100644 index 000000000..25f7b8c19 --- /dev/null +++ b/searxngv3/templates/_helpers.tpl @@ -0,0 +1,28 @@ +{{- define "searxng.engineFlags" -}} +disabled: {{ . }} +{{- if not . }} +inactive: false +{{- end }} +{{- end }} + +{{- define "searxng.enginePreferences" -}} +{{- $preferences := dict }} +{{- $env := .Values.olaresEnv | default dict }} +{{- range $key := list "SEARXNG_ENABLED_ENGINES" "SEARXNG_DISABLED_ENGINES" }} +{{- range splitList "," (index $env $key | default "") }} +{{- with trim . }} +{{- $name := lower . }} +{{- /* On image upgrades, check engines[].name in the new searx/settings.yml for mixed-case names and test their lowercase inputs here. */}} +{{- if eq $name "torznab eztv" }} +{{- $name = "Torznab EZTV" }} +{{- end }} +{{- $_ := set $preferences $name (eq $key "SEARXNG_DISABLED_ENGINES") }} +{{- end }} +{{- end }} +{{- end }} +{{- $preferences | toJson }} +{{- end }} + +{{- define "searxng.contactURL" -}} +{{- index (.Values.olaresEnv | default dict) "SEARXNG_CONTACT_URL" | default "" | trim -}} +{{- end }} diff --git a/searxngv3/templates/deployment.yaml b/searxngv3/templates/deployment.yaml index 858154c77..9eb3566e1 100644 --- a/searxngv3/templates/deployment.yaml +++ b/searxngv3/templates/deployment.yaml @@ -22,6 +22,9 @@ spec: strategy: {} template: metadata: + annotations: + checksum/contact-url: {{ include "searxng.contactURL" . | sha256sum }} + checksum/engine-preferences: {{ include "searxng.enginePreferences" . | sha256sum }} creationTimestamp: null labels: io.kompose.network/chrome-default: "true" @@ -33,7 +36,7 @@ spec: fsGroup: 1000 containers: - name: searxng - image: "docker.io/searxng/searxng:2026.11.5-3e95f6cd2" + image: "docker.io/searxng/searxng:2026.11.28-d96f0ec9b" ports: - containerPort: 8080 env: diff --git a/searxngv3/templates/searxng-config.yaml b/searxngv3/templates/searxng-config.yaml index d5c8a54c4..11a98bd6d 100644 --- a/searxngv3/templates/searxng-config.yaml +++ b/searxngv3/templates/searxng-config.yaml @@ -43,7 +43,7 @@ data: debug: false privacypolicy_url: false donation_url: false - contact_url: false + contact_url: {{ with (include "searxng.contactURL" .) }}{{ . | quote }}{{ else }}false{{ end }} enable_metrics: true search: @@ -131,9 +131,14 @@ data: # upgrade. For a persistent setup, fork the chart and bake the keys into # this template directly. # ============================================================================ + {{- $preferences := include "searxng.enginePreferences" . | fromJson }} engines: # annas archive requires base_url to be set explicitly. - name: annas archive + {{- if hasKey $preferences "annas archive" }} + {{- include "searxng.engineFlags" (get $preferences "annas archive") | nindent 8 }} + {{- $_ := unset $preferences "annas archive" }} + {{- end }} engine: annas_archive shortcut: aa base_url: https://annas-archive.org @@ -147,6 +152,10 @@ data: # To enable, comment out `engine: youtube_noapi` and uncomment the # two lines below it, filling in api_key. - name: youtube + {{- if hasKey $preferences "youtube" }} + {{- include "searxng.engineFlags" (get $preferences "youtube") | nindent 8 }} + {{- $_ := unset $preferences "youtube" }} + {{- end }} shortcut: yt engine: youtube_noapi # engine: youtube_api @@ -158,6 +167,10 @@ data: # With a key: official Flickr API. # Get a key at https://www.flickr.com/services/apps/create/ - name: flickr + {{- if hasKey $preferences "flickr" }} + {{- include "searxng.engineFlags" (get $preferences "flickr") | nindent 8 }} + {{- $_ := unset $preferences "flickr" }} + {{- end }} shortcut: fl categories: images engine: flickr_noapi @@ -170,6 +183,10 @@ data: # With a key: official API, structured infobox results. # Get an App ID at https://products.wolframalpha.com/api/ - name: wolframalpha + {{- if hasKey $preferences "wolframalpha" }} + {{- include "searxng.engineFlags" (get $preferences "wolframalpha") | nindent 8 }} + {{- $_ := unset $preferences "wolframalpha" }} + {{- end }} shortcut: wa engine: wolframalpha_noapi # engine: wolframalpha_api @@ -183,6 +200,10 @@ data: # With a key: larger quota. # Get a key at https://mymemory.translated.net/doc/keygen.php - name: mymemory translated + {{- if hasKey $preferences "mymemory translated" }} + {{- include "searxng.engineFlags" (get $preferences "mymemory translated") | nindent 8 }} + {{- $_ := unset $preferences "mymemory translated" }} + {{- end }} engine: translated shortcut: tl timeout: 5.0 @@ -194,6 +215,10 @@ data: # With a key: NSFW results unlocked, larger quota. # Get a key at https://wallhaven.cc/settings/account - name: wallhaven + {{- if hasKey $preferences "wallhaven" }} + {{- include "searxng.engineFlags" (get $preferences "wallhaven") | nindent 8 }} + {{- $_ := unset $preferences "wallhaven" }} + {{- end }} engine: wallhaven shortcut: wh # api_key: "" @@ -205,6 +230,10 @@ data: # With a key: 10000 req/day per registered app. # Register an app at https://stackapps.com/apps/oauth/register - name: stackoverflow + {{- if hasKey $preferences "stackoverflow" }} + {{- include "searxng.engineFlags" (get $preferences "stackoverflow") | nindent 8 }} + {{- $_ := unset $preferences "stackoverflow" }} + {{- end }} engine: stackexchange shortcut: st api_site: 'stackoverflow' @@ -212,6 +241,10 @@ data: # api_key: "" - name: askubuntu + {{- if hasKey $preferences "askubuntu" }} + {{- include "searxng.engineFlags" (get $preferences "askubuntu") | nindent 8 }} + {{- $_ := unset $preferences "askubuntu" }} + {{- end }} engine: stackexchange shortcut: ubuntu api_site: 'askubuntu' @@ -219,12 +252,21 @@ data: # api_key: "" - name: superuser + {{- if hasKey $preferences "superuser" }} + {{- include "searxng.engineFlags" (get $preferences "superuser") | nindent 8 }} + {{- $_ := unset $preferences "superuser" }} + {{- end }} engine: stackexchange shortcut: su api_site: 'superuser' categories: [it, q&a] # api_key: "" + {{- range $name, $disabled := $preferences }} + - name: {{ $name | quote }} + {{- include "searxng.engineFlags" $disabled | nindent 8 }} + {{- end }} + limiter.toml: | [botdetection] # Empty list: SearXNG uses remote_addr directly, suppressing the kubelet