mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 17:45:12 -05:00
38 lines
717 B
Nix
Executable file
38 lines
717 B
Nix
Executable file
{ instancesFunctions }:
|
|
let
|
|
inherit (instancesFunctions)
|
|
domain0
|
|
servicePath
|
|
sslPath
|
|
sopsPath
|
|
;
|
|
|
|
searxLabel = "SearXNG";
|
|
searxName = "searx";
|
|
searxSubdomain = "search";
|
|
searxDomain = "${searxSubdomain}.${domain0}";
|
|
in
|
|
{
|
|
label = searxLabel;
|
|
name = searxName;
|
|
email = {
|
|
address0 = "noreply@${domain0}";
|
|
};
|
|
sops = {
|
|
path0 = "${sopsPath}/${searxName}";
|
|
};
|
|
domains = {
|
|
url0 = searxDomain;
|
|
};
|
|
subdomain = searxSubdomain;
|
|
paths = {
|
|
path0 = "${servicePath}/${searxLabel}";
|
|
};
|
|
ports = {
|
|
port0 = 8888;
|
|
};
|
|
ssl = {
|
|
cert = "${sslPath}/${searxSubdomain}.${domain0}/fullchain.pem";
|
|
key = "${sslPath}/${searxSubdomain}.${domain0}/key.pem";
|
|
};
|
|
}
|