From 70aa92d173062508deab3d5eaee4644aac0e7d96 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 16 Jul 2024 20:53:45 +0200 Subject: [PATCH] add searx server --- systems/hetzner/nginx.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/systems/hetzner/nginx.nix b/systems/hetzner/nginx.nix index b04a044..e693797 100644 --- a/systems/hetzner/nginx.nix +++ b/systems/hetzner/nginx.nix @@ -49,6 +49,11 @@ forceSSL = true; enableACME = true; }; + "search.missing.ninja" = { + forceSSL = true; + enableACME = true; + locations."/".proxyPass = "http://unix:${config.services.searx.uwsgiConfig.socket}"; + }; }; }; @@ -74,6 +79,14 @@ max_input_time = 300 ''; + services.searx = { + enable = true; + runInUwsgi = true; + uwsgiConfig = { + socket = "/run/searx/searx.sock"; + }; + }; + services.wordpress.sites."test.missing.ninja" = with self.packages.${config.nixpkgs.hostPlatform.system}; { themes = [