From 99a011514f7ce9d089936b8990b7eb4b37e71aa5 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 25 May 2022 20:45:08 +0200 Subject: [PATCH] services/searxng: disable logging --- hosts/VEGAS/services/searxng/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/VEGAS/services/searxng/default.nix b/hosts/VEGAS/services/searxng/default.nix index a3e4dac..0dc84ec 100644 --- a/hosts/VEGAS/services/searxng/default.nix +++ b/hosts/VEGAS/services/searxng/default.nix @@ -1,4 +1,4 @@ -{ config, inputs, pkgs, tools, ... }: +{ config, inputs, lib, pkgs, tools, ... }: let port = config.portsStr.searxng; in @@ -21,7 +21,10 @@ in cache2 = "name=searxcache,items=2000,blocks=2000,blocksize=65536,bitmap=1"; buffer-size = 65536; env = ["SEARXNG_SETTINGS_PATH=/run/searx/settings.yml"]; + disable-logging = true; }; }; - services.nginx.virtualHosts."search.${tools.meta.domain}" = tools.nginx.vhosts.proxy "http://127.0.0.1:${port}"; + services.nginx.virtualHosts."search.${tools.meta.domain}" = lib.recursiveUpdate (tools.nginx.vhosts.proxy "http://127.0.0.1:${port}") { + extraConfig = "access_log off;"; + }; }