From 291e0dc33b8b99eea92958612025ac5773f938dd Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 9 Jan 2024 00:25:11 -0500 Subject: [PATCH] hosts: move searxng to yuki --- hosts/sakura/services/default.nix | 1 - hosts/yuki/services/default.nix | 1 + hosts/{sakura => yuki}/services/searxng.nix | 10 ++-------- hosts/yuki/services/traefik.nix | 6 ++++++ 4 files changed, 9 insertions(+), 9 deletions(-) rename hosts/{sakura => yuki}/services/searxng.nix (82%) diff --git a/hosts/sakura/services/default.nix b/hosts/sakura/services/default.nix index c3155fe..cbf8e30 100644 --- a/hosts/sakura/services/default.nix +++ b/hosts/sakura/services/default.nix @@ -9,7 +9,6 @@ ./vaultwarden.nix ./conduit.nix ./tailscale.nix - ./searxng.nix ./justlog.nix ]; } diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index afd6cbd1..b8f9614 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -6,5 +6,6 @@ ./jellyfin.nix ./wallos.nix ./homepage.nix + ./searxng.nix ]; } diff --git a/hosts/sakura/services/searxng.nix b/hosts/yuki/services/searxng.nix similarity index 82% rename from hosts/sakura/services/searxng.nix rename to hosts/yuki/services/searxng.nix index ef1bc5b..c7ce5d6 100644 --- a/hosts/sakura/services/searxng.nix +++ b/hosts/yuki/services/searxng.nix @@ -8,10 +8,7 @@ services.searx = { package = pkgs.searxng; enable = true; - runInUwsgi = true; - uwsgiConfig = { - http = ":8100"; - }; + runInUwsgi = false; environmentFile = config.sops.secrets.searxng-secret.path; limiterSettings = { botdetection = { @@ -20,7 +17,6 @@ "192.168.0.0/16" "172.16.0.0/12" "10.0.0.0/8" - "100.71.49.65/32" ]; }; }; @@ -28,9 +24,7 @@ settings = { general = { debug = false; - instance_name = "SearXNG flake.sh"; - enable_metrics = false; - contact_url = "mailto:contact@notohh.dev"; + instance_name = "SearXNG"; }; ui = { default_theme = "simple"; diff --git a/hosts/yuki/services/traefik.nix b/hosts/yuki/services/traefik.nix index 72e0996..4260b42 100644 --- a/hosts/yuki/services/traefik.nix +++ b/hosts/yuki/services/traefik.nix @@ -35,6 +35,11 @@ _: { entrypoints = ["web"]; service = "wallos"; }; + searxng = { + rule = "Host(`search.internal.flake.sh`)"; + entrypoints = ["web"]; + service = "searxng"; + }; }; services = { stash.loadBalancer.servers = [{url = "http://localhost:9999";}]; @@ -42,6 +47,7 @@ _: { jellyfin.loadBalancer.servers = [{url = "http://localhost:8096";}]; jellyseerr.loadBalancer.servers = [{url = "http://localhost:5055";}]; wallos.loadBalancer.servers = [{url = "http://localhost:8282";}]; + searxng.loadBalancer.servers = [{url = "http://localhost:8100";}]; }; }; };