add searx
This commit is contained in:
parent
256dc016c1
commit
316eca1442
32
modules/searx.nix
Normal file
32
modules/searx.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
|
||||
{ config, lib, pkgs, unstable, ... }:
|
||||
|
||||
let
|
||||
dn = "search.tfcconnection.org";
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
services = {
|
||||
searx = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server.port = 8085;
|
||||
server.bind_address = "0.0.0.0";
|
||||
server.secret_key = "cc842bf5ef8c5c7ec04dd29e1f4815bc6ac6c0bcb806b5185d035331bcec58bf";
|
||||
|
||||
# engines = lib.singleton
|
||||
# { name = "wolframalpha";
|
||||
# shortcut = "wa";
|
||||
# api_key = "@WOLFRAM_API_KEY@";
|
||||
# engine = "wolframalpha_api";
|
||||
# };
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts.${dn} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://localhost:${toString config.services.searx.settings.server.port}";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue