feat: add redis and configs to searxng
This commit is contained in:
parent
978dc11d37
commit
aa766b7adc
1 changed files with 16 additions and 4 deletions
|
|
@ -4,16 +4,28 @@
|
||||||
services.searx = {
|
services.searx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.searxng;
|
package = pkgs.searxng;
|
||||||
|
redisCreateLocally = true;
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
port = 8082;
|
port = 8082;
|
||||||
bind_address = "127.0.0.1";
|
bind_address = "127.0.0.1";
|
||||||
secret_key = config.mySecrets.searxKey;
|
secret_key = config.mySecrets.searxKey;
|
||||||
};
|
};
|
||||||
|
search = {
|
||||||
|
request_timeout = 1.5;
|
||||||
|
};
|
||||||
|
use_default_settings = {
|
||||||
|
engines = {
|
||||||
|
keep_only = [
|
||||||
|
"google"
|
||||||
|
"wikipedia"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
engines = [
|
||||||
|
{ name = "google"; engine = "google"; disabled = false; }
|
||||||
|
{ name = "wikipedia"; engine = "wikipedia"; disabled = false; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Inject secret via env vars or file substitution if possible
|
|
||||||
# Or use `environment.etc` to place config file if service allows.
|
|
||||||
# For now, simplistic setup.
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue