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" ]; }; }