2023-10-10 15:42:00 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
sops.secrets.searxng-secret = {};
|
|
|
|
networking.firewall.allowedTCPPorts = [8100];
|
|
|
|
services.searx = {
|
|
|
|
package = pkgs.searxng;
|
|
|
|
enable = true;
|
2023-10-17 00:22:00 -04:00
|
|
|
runInUwsgi = true;
|
|
|
|
uwsgiConfig = {
|
|
|
|
http = ":8100";
|
|
|
|
};
|
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-18 02:49:03 -04:00
|
|
|
"100.71.49.65/32"
|
2023-10-17 00:22:00 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-10-10 15:42:00 -04:00
|
|
|
settings = {
|
|
|
|
general = {
|
|
|
|
debug = false;
|
|
|
|
instance_name = "SearXNG flake.sh";
|
|
|
|
enable_metrics = false;
|
|
|
|
contact_url = "mailto:contact@notohh.dev";
|
|
|
|
};
|
|
|
|
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@";
|
|
|
|
base_url = "https://search.flake.sh/";
|
|
|
|
public_instance = true;
|
|
|
|
infinite_scroll = true;
|
|
|
|
};
|
|
|
|
redis = {
|
|
|
|
url = "redis://:searxng@100.94.214.100:6380";
|
|
|
|
};
|
2023-05-28 22:00:50 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|