switch to searxng

This commit is contained in:
Cyryl Płotnicki 2023-05-08 17:08:49 +01:00
parent 8a9b3e3763
commit 983e13a9be

View file

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