2025-01-15 18:19:03 +01:00
|
|
|
{pkgs, ...}: {
|
|
|
|
services.searx = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.searxng;
|
|
|
|
settings = {
|
|
|
|
server.port = 3005;
|
|
|
|
server.secret_key = "@SEARX_SECRET_KEY@";
|
|
|
|
search.formats = ["html" "json"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# Traefik configuration specific to searx
|
|
|
|
services.traefik.dynamicConfigOptions.http = {
|
|
|
|
services.searx.loadBalancer.servers = [
|
|
|
|
{
|
|
|
|
url = "http://localhost:3005/";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
routers.searx = {
|
2025-04-18 15:59:06 +02:00
|
|
|
rule = "Host(`search.m3ta.dev`)";
|
|
|
|
tls = {
|
|
|
|
certResolver = "godaddy";
|
|
|
|
};
|
|
|
|
service = "searx";
|
|
|
|
entrypoints = "websecure";
|
|
|
|
};
|
|
|
|
routers.searx-old = {
|
2025-01-15 18:19:03 +01:00
|
|
|
rule = "Host(`search.m3tam3re.com`)";
|
|
|
|
tls = {
|
|
|
|
certResolver = "godaddy";
|
|
|
|
};
|
|
|
|
service = "searx";
|
|
|
|
entrypoints = "websecure";
|
2025-04-18 15:59:06 +02:00
|
|
|
middlewares = ["subdomain-redirect"];
|
2025-01-15 18:19:03 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|