From 14f37baf28d6ee0377741f837ecdb26a699147bc Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:21:59 +0100 Subject: [PATCH] SearXNG: Moved secret to separate file which is not synced with Git. --- searxng/.env.example | 4 ++++ searxng/docker-compose.yaml | 1 + searxng/settings.yml | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 searxng/.env.example diff --git a/searxng/.env.example b/searxng/.env.example new file mode 100644 index 0000000..112b909 --- /dev/null +++ b/searxng/.env.example @@ -0,0 +1,4 @@ +# Generate secret with: +# $ cat /dev/urandom | tr -dc 'a-z-A-Z-0-9' | head -c 50 + +SEARXNG_SECRET=XXX diff --git a/searxng/docker-compose.yaml b/searxng/docker-compose.yaml index 1f90e3a..c49d6e7 100644 --- a/searxng/docker-compose.yaml +++ b/searxng/docker-compose.yaml @@ -22,6 +22,7 @@ services: - SETUID environment: - SEARXNG_BASE_URL=https://searx.viyurz.fr/ + - SEARXNG_SECRET=${SEARXNG_SECRET} networks: - searxng ports: diff --git a/searxng/settings.yml b/searxng/settings.yml index 8165bc4..0ce3abb 100644 --- a/searxng/settings.yml +++ b/searxng/settings.yml @@ -10,7 +10,6 @@ search: autocomplete: "google" server: - secret_key: "1d744894f2ff45be0990e0bf240456083cfe292a57857c0cdca88915531c2bb7" limiter: true image_proxy: true