From f941b3d4199164ccfd7f495c58a01ff06165e1e7 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 16 Jul 2024 21:33:09 +0200 Subject: [PATCH] set a secrect key --- systems/hetzner/nginx.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/systems/hetzner/nginx.nix b/systems/hetzner/nginx.nix index a8d62a8..8bbcf6d 100644 --- a/systems/hetzner/nginx.nix +++ b/systems/hetzner/nginx.nix @@ -52,7 +52,7 @@ "search.missing.ninja" = { forceSSL = true; enableACME = true; - locations."/".proxyPass = "http://localhost:8080"; + locations."/".proxyPass = "http://unix:${config.services.searx.uwsgiConfig.socket}"; }; }; }; @@ -81,9 +81,11 @@ services.searx = { enable = true; - runInUwsgi = false; + runInUwsgi = true; + settings = { + server.secret_key = "NotASecret"; + }; uwsgiConfig = { - http = ":3355"; socket = "/run/searx/searx.sock"; chmod-socket = "660"; };