searxng: switch to uwsgi mode
This commit is contained in:
parent
898a5a9930
commit
dd533805b1
1 changed files with 15 additions and 0 deletions
|
@ -8,7 +8,22 @@
|
||||||
services.searx = {
|
services.searx = {
|
||||||
package = pkgs.searxng;
|
package = pkgs.searxng;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
runInUwsgi = true;
|
||||||
|
uwsgiConfig = {
|
||||||
|
http = ":8100";
|
||||||
|
};
|
||||||
environmentFile = config.sops.secrets.searxng-secret.path;
|
environmentFile = config.sops.secrets.searxng-secret.path;
|
||||||
|
limiterSettings = {
|
||||||
|
botdetection = {
|
||||||
|
ip_lists = {
|
||||||
|
pass_ip = [
|
||||||
|
"192.168.0.0/16"
|
||||||
|
"172.16.0.0/12"
|
||||||
|
"10.0.0.0/8"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = {
|
||||||
debug = false;
|
debug = false;
|
||||||
|
|
Loading…
Reference in a new issue