Auth API
This commit is contained in:
parent
71b13f2084
commit
a1878bc2e4
9 changed files with 187 additions and 68 deletions
36
clients/quadraticserver/searxng.nix
Normal file
36
clients/quadraticserver/searxng.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services = with config.services.searx.settings.server; {
|
||||
searx = {
|
||||
enable = true;
|
||||
environmentFile = config.age.secrets."searxngSecret.age".path;
|
||||
|
||||
settings = {
|
||||
general = {
|
||||
instance_name = "Federated Nexus Search";
|
||||
contact_url = "mailto:henry@henryhiles.com";
|
||||
debug = true;
|
||||
};
|
||||
search = {
|
||||
autocomplete = "duckduckgo";
|
||||
favicon_resolver = "duckduckgo";
|
||||
};
|
||||
|
||||
server = {
|
||||
base_url = "search.federated.nexus";
|
||||
|
||||
port = 80;
|
||||
bind_address = "127.0.0.4";
|
||||
};
|
||||
|
||||
engines = lib.mapAttrsToList (name: value: {inherit name;} // value) {
|
||||
"wikidata".disabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
caddy.virtualHosts."${base_url}".extraConfig = "reverse_proxy ${bind_address}";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue