feat(odin): add searxng, meta search engine.
This commit is contained in:
parent
10e4920e13
commit
5e66501370
5 changed files with 63 additions and 0 deletions
34
modules/servers/odin/searx.nix
Normal file
34
modules/servers/odin/searx.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{config, ...}: {
|
||||
services.searx = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general.instance_name = "Crony's SearXNG";
|
||||
server.port = "8090";
|
||||
server.bind_address = "127.0.0.1";
|
||||
server.secret_key = "@SEARX_SECRET_KEY@";
|
||||
};
|
||||
uwsgiConfig = {
|
||||
http = ":8090";
|
||||
};
|
||||
redisCreateLocally = true;
|
||||
runInUwsgi = true;
|
||||
environmentFile = "${config.age.secrets.searx.path}";
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.searx.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:8090";
|
||||
}
|
||||
];
|
||||
|
||||
routers.searx = {
|
||||
rule = "Host(`searx.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "searx";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue