From 983e13a9be2e444512034052df9fd82d751ccbce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Mon, 8 May 2023 17:08:49 +0100 Subject: [PATCH] switch to searxng --- nixos/boxes/vpsfree1/search.nix | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/nixos/boxes/vpsfree1/search.nix b/nixos/boxes/vpsfree1/search.nix index defdf9ce..22dfc8d1 100644 --- a/nixos/boxes/vpsfree1/search.nix +++ b/nixos/boxes/vpsfree1/search.nix @@ -7,21 +7,26 @@ enableACME = true; extraConfig = '' access_log /dev/null; - error_log /dev/null; - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; + proxy_connect_timeout 90s; + proxy_send_timeout 90s; + proxy_read_timeout 90s; + proxy_busy_buffers_size 512k; + proxy_buffers 4 512k; + proxy_buffer_size 256k; ''; - locations."/" = { proxyPass = "http://localhost:8888"; }; + locations."/" = { + proxyPass = "http://127.0.0.1:8888"; + proxyWebsockets = true; + }; }; }; }; - services.searx = { - enable = true; - settings = { - server.bind_address = "127.0.0.1"; - server.secret_key = "notsosecrettbh"; - }; + virtualisation.oci-containers.containers.searxng = { + image = + "searxng/searxng@sha256:650c0b183a129e10c2493126bb27c3541ffebbead6e0255fab91831457211b06"; + volumes = [ ]; + environment = { BASE_URL = "https://search.cyplo.dev"; }; + ports = [ "8888:8080" ]; }; }