2022-12-19 09:09:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2021-10-30 11:10:19 +01:00
|
|
|
services.nginx = {
|
|
|
|
virtualHosts = {
|
|
|
|
"search.cyplo.dev" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
extraConfig = ''
|
|
|
|
access_log /dev/null;
|
|
|
|
error_log /dev/null;
|
|
|
|
proxy_connect_timeout 60s;
|
|
|
|
proxy_send_timeout 60s;
|
|
|
|
proxy_read_timeout 60s;
|
|
|
|
'';
|
2022-12-19 09:09:08 +00:00
|
|
|
locations."/" = {proxyPass = "http://localhost:8888";};
|
2021-10-30 11:10:19 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.searx = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
server.bind_address = "127.0.0.1";
|
|
|
|
server.secret_key = "notsosecrettbh";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|