mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: added searXNG
This commit is contained in:
parent
1b0e09b029
commit
2529f6277d
1 changed files with 34 additions and 0 deletions
34
modules/config/instances/config/searx.nix
Normal file
34
modules/config/instances/config/searx.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ instancesFunctions }:
|
||||||
|
let
|
||||||
|
inherit (instancesFunctions)
|
||||||
|
domain0
|
||||||
|
servicePath
|
||||||
|
sslPath
|
||||||
|
sopsPath
|
||||||
|
;
|
||||||
|
|
||||||
|
searxLabel = "SearXNG";
|
||||||
|
searxName = "searx";
|
||||||
|
searxSubdomain = "search";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
label = searxLabel;
|
||||||
|
name = searxName;
|
||||||
|
email = {
|
||||||
|
address0 = "noreply@${domain0}";
|
||||||
|
};
|
||||||
|
sops = {
|
||||||
|
path0 = "${sopsPath}/${searxName}";
|
||||||
|
};
|
||||||
|
subdomain = searxSubdomain;
|
||||||
|
paths = {
|
||||||
|
path0 = "${servicePath}/${searxLabel}";
|
||||||
|
};
|
||||||
|
ports = {
|
||||||
|
port0 = 8888;
|
||||||
|
};
|
||||||
|
ssl = {
|
||||||
|
cert = "${sslPath}/${searxSubdomain}.${domain0}/fullchain.pem";
|
||||||
|
key = "${sslPath}/${searxSubdomain}.${domain0}/key.pem";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue