config/systems/x86_64-linux/pluto/services/searxng.nix

25 lines
594 B
Nix
Raw Normal View History

2024-05-03 14:35:21 -04:00
{pkgs, ...}: {
services.searx = {
enable = true;
package = pkgs.searxng;
runInUwsgi = true;
settings = {
2024-05-03 15:47:30 -04:00
# server.port = 8080;
# server.bind_addres = "0.0.0.0";
2024-05-03 14:35:21 -04:00
server.secret_key = "6f6bf40218f239718cacbc2cd837792be828e840b48ac72a8e0a9d0ddb9d0b00";
2024-05-03 16:38:20 -04:00
server.base_url = "https://search.zackmyers.io/searx/";
2024-05-03 14:35:21 -04:00
};
uwsgiConfig = {
2024-05-03 15:47:30 -04:00
http = ":8080";
2024-05-03 15:40:27 -04:00
};
};
services.nginx.virtualHosts."search.zackmyers.io" = {
forceSSL = true;
enableACME = true;
2024-05-03 16:38:20 -04:00
locations."/searx/" = {
2024-05-03 15:47:30 -04:00
proxyPass = "http://localhost:8080";
};
2024-05-03 14:35:21 -04:00
};
}