From 0956e920490fe419b2613e71355b5d36e99138b4 Mon Sep 17 00:00:00 2001 From: Gemini Date: Mon, 12 Oct 2026 00:24:37 +0200 Subject: [PATCH] Initial commit: configurations SearXNG pour NAS et VPS (tickets 039/039b) --- README.md | 126 +++++++++++++++++++++++++++++++++++++++++ nas/docker-compose.yml | 24 ++++++++ nas/settings.yml | 81 ++++++++++++++++++++++++++ vps/docker-compose.yml | 25 ++++++++ vps/settings.yml | 99 ++++++++++++++++++++++++++++++++ 5 files changed, 355 insertions(+) create mode 100644 README.md create mode 100644 nas/docker-compose.yml create mode 100644 nas/settings.yml create mode 100644 vps/docker-compose.yml create mode 100644 vps/settings.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..543d9f4 --- /dev/null +++ b/README.md @@ -0,0 +1,126 @@ +# SearXNG Config — NAS & VPS + +Configurations Docker Compose et SearXNG pour les instances locales déployées sur le NAS Synology (DS920+) et le VPS Contabo. + +Tickets associés : +- **infra-2026-10-039** : Déploiement du socle VPS (port 8888 loopback + Tailscale, image épinglée, multi-moteurs, pertinence). +- **infra-2026-10-039b** : Mise à jour du NAS (image épinglée par digest, tag de rollback, filtrage pertinence, publication Gitea et runbook). + +--- + +## 1. Architecture et Principes + +- **Image unique épinglée par digest** : + (SearXNG 2026.10.9-f4822b3fc). +- **Consommation mémoire maîtrisée** : sur chaque hôte. +- **Redémarrage** : . +- **Cloisonnement strict et aucune exposition publique** : + - NAS : écoute sur (loopback hôte) et réseau Docker interne (). + - VPS : écoute sur et sur l'IP Tailscale uniquement. +- **Hygiène des secrets** : + - La clé secrète est générée individuellement sur chaque machine et n'est jamais commitée dans ce dépôt. + +--- + +## 2. Synthèse des Moteurs par Hôte + +| Hôte | Moteurs actifs retenus | Moteurs écartés & Motifs | +|---|---|---| +| **VPS** | , , , , , , , , , , , , , , , , npm + +Usage: + +npm install install all the dependencies in your project +npm install add the dependency to your project +npm test run this project's tests +npm run run the script named +npm -h quick help on +npm -l display usage info for all commands +npm help search for help on +npm help npm more involved overview + +All commands: + + access, adduser, audit, bugs, cache, ci, completion, + config, dedupe, deprecate, diff, dist-tag, docs, doctor, + edit, exec, explain, explore, find-dupes, fund, get, help, + help-search, hook, init, install, install-ci-test, + install-test, link, ll, login, logout, ls, org, outdated, + owner, pack, ping, pkg, prefix, profile, prune, publish, + query, rebuild, repo, restart, root, run-script, sbom, + search, set, shrinkwrap, star, stars, start, stop, team, + test, token, uninstall, unpublish, unstar, update, version, + view, whoami + +Specify configs in the ini-formatted file: + /workspace/.npmrc +or on the command line via: npm --key=value + +More configuration info: npm help config +Configuration fields: npm help 7 config + +npm@10.9.8 /usr/local/lib/node_modules/npm, , | Aucun moteur majeur bloqué depuis l'IP VPS. | +| **NAS** | , , , , , , , , , npm + +Usage: + +npm install install all the dependencies in your project +npm install add the dependency to your project +npm test run this project's tests +npm run run the script named +npm -h quick help on +npm -l display usage info for all commands +npm help search for help on +npm help npm more involved overview + +All commands: + + access, adduser, audit, bugs, cache, ci, completion, + config, dedupe, deprecate, diff, dist-tag, docs, doctor, + edit, exec, explain, explore, find-dupes, fund, get, help, + help-search, hook, init, install, install-ci-test, + install-test, link, ll, login, logout, ls, org, outdated, + owner, pack, ping, pkg, prefix, profile, prune, publish, + query, rebuild, repo, restart, root, run-script, sbom, + search, set, shrinkwrap, star, stars, start, stop, team, + test, token, uninstall, unpublish, unstar, update, version, + view, whoami + +Specify configs in the ini-formatted file: + /workspace/.npmrc +or on the command line via: npm --key=value + +More configuration info: npm help config +Configuration fields: npm help 7 config + +npm@10.9.8 /usr/local/lib/node_modules/npm, , | - , , , , : CAPTCHA / blocage IP résidentielle (journal du 01/10/2026).
- : expirations / timeouts répétés (11/10/2026).
- : clé API publique obsolète / non reconnue.
- : timeout depuis l'IP NAS. | + +--- + +## 3. Réglages de Pertinence et Filtrage + +Sur les deux instances : +- **Suppression des domaines polluants / réseaux sociaux** : + - + - + - + - +- **Priorité haute aux sources fiables** : + - + - + - + - + - / +- **Délais réseau** : + - : 6.0 s + - : 10.0 s + +--- + +## 4. Rollback et Sauvegardes + +Sur le NAS : +- Image précédente conservée sous le tag local (ID ). +- Sauvegardes des fichiers de configuration : + - + - diff --git a/nas/docker-compose.yml b/nas/docker-compose.yml new file mode 100644 index 0000000..a36ff67 --- /dev/null +++ b/nas/docker-compose.yml @@ -0,0 +1,24 @@ +services: + searxng: + image: searxng/searxng@sha256:85492ba800a861e3e8ff6014c430e81369fe6ca766a9990595f616d1ce95b272 + container_name: searxng + restart: unless-stopped + mem_limit: 512m + networks: + - n8n + ports: + - 127.0.0.1:8888:8080 + volumes: + - ./searxng:/etc/searxng:rw + environment: + - SEARXNG_BASE_URL=http://searxng:8888/ + healthcheck: + test: [CMD, wget, -q, --spider, http://127.0.0.1:8080/healthz] + interval: 10s + timeout: 5s + retries: 3 + start_period: 5s + +networks: + n8n: + external: true diff --git a/nas/settings.yml b/nas/settings.yml new file mode 100644 index 0000000..285f568 --- /dev/null +++ b/nas/settings.yml @@ -0,0 +1,81 @@ +use_default_settings: + engines: + keep_only: + - wikipedia + - bing + - yandex + - brave + - github + - stackoverflow + - askubuntu + - superuser + - pypi + - npm + - docker hub + - arxiv + +server: + secret_key: "" + image_proxy: true + +search: + formats: + - html + - json + suspended_times: + SearxEngineAccessDenied: 86400 + SearxEngineCaptcha: 86400 + SearxEngineTooManyRequests: 3600 + cf_SearxEngineCaptcha: 86400 + cf_SearxEngineAccessDenied: 86400 + +outgoing: + request_timeout: 6.0 + max_request_timeout: 10.0 + +hostnames: + remove: + - '(.*\.)?facebook\.com$' + - '(.*\.)?instagram\.com$' + - '(.*\.)?pinterest\..*$' + - '(.*\.)?tiktok\.com$' + high_priority: + - '(.*\.)?docs\.docker\.com$' + - '(.*\.)?github\.com$' + - '(.*\.)?stackoverflow\.com$' + - '(.*\.)?wikipedia\.org$' + - '(.*\.)?gov\.tn$' + - '.*\.tn$' + +categories_as_tabs: + general: null + it: null + science: null + news: null + +engines: + - name: wikipedia + disabled: false + - name: bing + disabled: false + - name: yandex + disabled: false + weight: 0.6 + - name: brave + disabled: false + - name: github + disabled: false + - name: stackoverflow + disabled: false + - name: askubuntu + disabled: false + - name: superuser + disabled: false + - name: pypi + disabled: false + - name: npm + disabled: false + - name: docker hub + disabled: false + - name: arxiv + disabled: false diff --git a/vps/docker-compose.yml b/vps/docker-compose.yml new file mode 100644 index 0000000..c28e31a --- /dev/null +++ b/vps/docker-compose.yml @@ -0,0 +1,25 @@ +services: + searxng: + image: searxng/searxng@sha256:85492ba800a861e3e8ff6014c430e81369fe6ca766a9990595f616d1ce95b272 + container_name: searxng + restart: unless-stopped + mem_limit: 512m + networks: + - searxng-net + ports: + - "127.0.0.1:8888:8080" + - "100.94.90.119:8888:8080" + volumes: + - ./searxng:/etc/searxng:rw + environment: + - SEARXNG_BASE_URL=http://127.0.0.1:8888/ + healthcheck: + test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:8080/healthz"] + interval: 10s + timeout: 5s + retries: 3 + start_period: 5s + +networks: + searxng-net: + name: searxng-net diff --git a/vps/settings.yml b/vps/settings.yml new file mode 100644 index 0000000..96da3c0 --- /dev/null +++ b/vps/settings.yml @@ -0,0 +1,99 @@ +use_default_settings: + engines: + keep_only: + - mojeek + - marginalia + - wikipedia + - github + - stackoverflow + - askubuntu + - superuser + - pypi + - npm + - docker hub + - arxiv + - brave + - duckduckgo + - startpage + - qwant + - yahoo + - bing + - google + - yandex + +server: + secret_key: "" + image_proxy: true + +search: + formats: + - html + - json + +outgoing: + request_timeout: 6.0 + max_request_timeout: 10.0 + +hostnames: + remove: + - '(.*\.)?facebook\.com$' + - '(.*\.)?instagram\.com$' + - '(.*\.)?pinterest\..*$' + - '(.*\.)?tiktok\.com$' + high_priority: + - '(.*\.)?docs\.docker\.com$' + - '(.*\.)?github\.com$' + - '(.*\.)?stackoverflow\.com$' + - '(.*\.)?wikipedia\.org$' + - '(.*\.)?gov\.tn$' + - '.*\.tn$' + +categories_as_tabs: + general: null + it: null + science: null + news: null + +engines: + - name: mojeek + inactive: false + disabled: false + - name: marginalia + inactive: false + disabled: false + api_key: public + - name: wikipedia + disabled: false + - name: github + disabled: false + - name: stackoverflow + disabled: false + - name: askubuntu + disabled: false + - name: superuser + disabled: false + - name: pypi + disabled: false + - name: npm + disabled: false + - name: docker hub + disabled: false + - name: arxiv + disabled: false + - name: brave + disabled: false + - name: duckduckgo + disabled: false + - name: startpage + inactive: false + disabled: false + - name: qwant + disabled: false + - name: yahoo + disabled: false + - name: bing + disabled: false + - name: google + disabled: false + - name: yandex + disabled: false