beagle: setup SearX(NG)
This commit is contained in:
parent
6540e7e33f
commit
cf5fbef43c
6 changed files with 37 additions and 24 deletions
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./modules/kanidm.nix
|
||||
./modules/matrix.nix
|
||||
./modules/searx.nix
|
||||
./modules/reverse-proxy.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,15 @@
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
"searx.peprolinbot.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
||||
# Rest of configuration done in services.searx.configreNginx
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
27
machines/beagle/modules/searx.nix
Normal file
27
machines/beagle/modules/searx.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
clan.core.vars.generators.searx = {
|
||||
prompts.secret-key = {
|
||||
description = "SearX server.secret_key";
|
||||
type = "hidden";
|
||||
};
|
||||
|
||||
files.environment-file.secret = true;
|
||||
script = ''
|
||||
cat <<EOL > $out/environment-file
|
||||
SEARX_SECRET_KEY=$(<$prompts/secret-key)
|
||||
EOL
|
||||
'';
|
||||
};
|
||||
|
||||
services.searx = {
|
||||
enable = true;
|
||||
domain = "searx.peprolinbot.com";
|
||||
configureNginx = true;
|
||||
redisCreateLocally = true;
|
||||
environmentFile = config.clan.core.vars.generators.searx.files.environment-file.path;
|
||||
settings = {
|
||||
server.secret_key = "$SEARX_SECRET_KEY";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue