127 lines
4.3 KiB
Markdown
127 lines
4.3 KiB
Markdown
# 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 <command>
|
|
|
|
Usage:
|
|
|
|
npm install install all the dependencies in your project
|
|
npm install <foo> add the <foo> dependency to your project
|
|
npm test run this project's tests
|
|
npm run <foo> run the script named <foo>
|
|
npm <command> -h quick help on <command>
|
|
npm -l display usage info for all commands
|
|
npm help <term> search for help on <term>
|
|
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 <command> --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 <command>
|
|
|
|
Usage:
|
|
|
|
npm install install all the dependencies in your project
|
|
npm install <foo> add the <foo> dependency to your project
|
|
npm test run this project's tests
|
|
npm run <foo> run the script named <foo>
|
|
npm <command> -h quick help on <command>
|
|
npm -l display usage info for all commands
|
|
npm help <term> search for help on <term>
|
|
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 <command> --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).<br>- : expirations / timeouts répétés (11/10/2026).<br>- : clé API publique obsolète / non reconnue.<br>- : 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 :
|
|
-
|
|
-
|