2024-02-08 12:04:15 -05:00
|
|
|
{ pkgs, config, ... }:
|
2023-10-10 15:42:00 -04:00
|
|
|
{
|
2024-02-08 12:04:15 -05:00
|
|
|
sops.secrets.searxng-secret = { };
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8100 ];
|
2023-10-10 15:42:00 -04:00
|
|
|
services.searx = {
|
|
|
|
package = pkgs.searxng;
|
2024-02-02 07:53:33 -05:00
|
|
|
enable = false;
|
2024-01-09 00:25:11 -05:00
|
|
|
runInUwsgi = false;
|
2023-10-10 15:42:00 -04:00
|
|
|
environmentFile = config.sops.secrets.searxng-secret.path;
|
2023-10-17 00:22:00 -04:00
|
|
|
limiterSettings = {
|
|
|
|
botdetection = {
|
|
|
|
ip_lists = {
|
|
|
|
pass_ip = [
|
|
|
|
"192.168.0.0/16"
|
|
|
|
"172.16.0.0/12"
|
|
|
|
"10.0.0.0/8"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-10-10 15:42:00 -04:00
|
|
|
settings = {
|
|
|
|
general = {
|
|
|
|
debug = false;
|
2024-01-09 00:25:11 -05:00
|
|
|
instance_name = "SearXNG";
|
2023-10-10 15:42:00 -04:00
|
|
|
};
|
|
|
|
ui = {
|
|
|
|
default_theme = "simple";
|
|
|
|
theme_args = {
|
|
|
|
simple_style = "dark";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
search = {
|
|
|
|
autocomplete = "google";
|
|
|
|
safe_search = 0;
|
|
|
|
default_lang = "en-US";
|
|
|
|
};
|
|
|
|
server = {
|
|
|
|
port = 8100;
|
|
|
|
bind_address = "0.0.0.0";
|
|
|
|
secret_key = "@SEARXNG_SECRET@";
|
2023-12-03 00:01:19 -05:00
|
|
|
public_instance = false;
|
2023-10-10 15:42:00 -04:00
|
|
|
infinite_scroll = true;
|
|
|
|
};
|
|
|
|
redis = {
|
|
|
|
url = "redis://:searxng@100.94.214.100:6380";
|
|
|
|
};
|
2023-05-28 22:00:50 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|