fix searx configuration
This commit is contained in:
parent
e4af5cfe15
commit
e32598d618
@ -284,35 +284,42 @@
|
|||||||
uwsgiConfig = {
|
uwsgiConfig = {
|
||||||
disable-logging = true;
|
disable-logging = true;
|
||||||
|
|
||||||
# serve via uwsgi unix socket
|
# serve using the uwsgi protocol
|
||||||
socket = "/run/searx/uwsgi.sock";
|
socket = "/run/searx/uwsgi.sock";
|
||||||
chmod-socket = "660";
|
chmod-socket = "660";
|
||||||
|
|
||||||
# mount app on non-root url /srx
|
# use /searx as url "mountpoint"
|
||||||
manage-script-name = true;
|
|
||||||
module = "";
|
|
||||||
mount = "/srx=searx.webapp:application";
|
mount = "/srx=searx.webapp:application";
|
||||||
|
module = "";
|
||||||
|
manage-script-name = true;
|
||||||
|
|
||||||
|
# caching
|
||||||
|
cache2 = lib.concatStringsSep ","
|
||||||
|
[ "name=searxcache"
|
||||||
|
"items=2000"
|
||||||
|
"blocks=2000"
|
||||||
|
"blocksize=4096"
|
||||||
|
"bitmap=1"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
settings =
|
settings =
|
||||||
{ general.instance_name = "searxwell";
|
{ general.instance_name = "searxwell";
|
||||||
server.base_url = "https://${config.var.hostname}/srx/";
|
server.base_url = "https://${config.var.hostname}/";
|
||||||
|
server.secret_key = "@SEARX_SECRET@";
|
||||||
|
|
||||||
# Replace DOI links with Sci-Hub
|
# Replace DOI links with Sci-Hub
|
||||||
doi_resolvers."sci-hub.se" = "https://sci-hub.se/";
|
default_doi_resolver = "sci-hub.st";
|
||||||
default_doi_resolver = "sci-hub.se";
|
|
||||||
|
|
||||||
# Use authenticated APIs for some services
|
## Use authenticated APIs for some services
|
||||||
engines = {
|
engines = [
|
||||||
wolframalpha =
|
{ name = "wolframalpha";
|
||||||
{ api_key = "@WOLFRAM_API_KEY@";
|
api_key = "@WOLFRAM_API_KEY@";
|
||||||
engine = "wolframalpha_api";
|
}
|
||||||
};
|
{ name = "youtube";
|
||||||
youtube =
|
api_key = "@YOUTUBE_API_KEY@";
|
||||||
{ api_key = "@YOUTUBE_API_KEY@";
|
}
|
||||||
engine = "youtube_api";
|
];
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
10
packages.nix
10
packages.nix
@ -13,6 +13,16 @@ in
|
|||||||
authToken = config.secrets.passwords.matrix;
|
authToken = config.secrets.passwords.matrix;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
searx = super.searx.overrideAttrs (old: {
|
||||||
|
patches = [
|
||||||
|
# Fix a crash, remove with the next update
|
||||||
|
(self.fetchpatch {
|
||||||
|
url = "https://github.com/searx/searx/commit/9c10b150963babb7f0b52081693a42b2e61eede9.patch";
|
||||||
|
sha256 = "0svp8799628wja2hq59da6rxqi99am8p6hb8y27ciwzsjz0wwba7";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
});
|
||||||
|
|
||||||
monero = unstable.monero;
|
monero = unstable.monero;
|
||||||
element-web = unstable.element-web;
|
element-web = unstable.element-web;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user