Initial commit: configurations SearXNG pour NAS et VPS (tickets 039/039b)

This commit is contained in:
Gemini committed 2026-10-12 00:24:37 +02:00
commit 0956e92049
5 files changed
+355

No files matched your search

+126
View File
@@ -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 <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 :
-
-
+24
View File
@@ -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
+81
View File
@@ -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: "<GENERE_LOCALEMENT_NON_COMMITE>"
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
+25
View File
@@ -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
+99
View File
@@ -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: "<GENERE_LOCALEMENT_NON_COMMITE>"
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