From dd533805b1cb465ef4e15956ee08345924e880fa Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 17 Oct 2023 00:22:00 -0400 Subject: [PATCH] searxng: switch to uwsgi mode --- hosts/sakura/services/searxng.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hosts/sakura/services/searxng.nix b/hosts/sakura/services/searxng.nix index ba115f6..42c967c 100644 --- a/hosts/sakura/services/searxng.nix +++ b/hosts/sakura/services/searxng.nix @@ -8,7 +8,22 @@ services.searx = { package = pkgs.searxng; enable = true; + runInUwsgi = true; + uwsgiConfig = { + http = ":8100"; + }; environmentFile = config.sops.secrets.searxng-secret.path; + limiterSettings = { + botdetection = { + ip_lists = { + pass_ip = [ + "192.168.0.0/16" + "172.16.0.0/12" + "10.0.0.0/8" + ]; + }; + }; + }; settings = { general = { debug = false;