mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-17 10:35:13 -05:00
34 lines
648 B
Nix
Executable file
34 lines
648 B
Nix
Executable file
{ instancesFunctions }:
|
|
let
|
|
inherit (instancesFunctions)
|
|
domain3
|
|
servicePath
|
|
sslPath
|
|
sopsPath
|
|
;
|
|
|
|
forgejoLabel = "Forgejo";
|
|
forgejoName = "forgejo";
|
|
forgejoSubdomain = "source";
|
|
in
|
|
{
|
|
label = forgejoLabel;
|
|
name = forgejoName;
|
|
email = {
|
|
address0 = "noreply@${domain3}";
|
|
};
|
|
sops = {
|
|
path0 = "${sopsPath}/${forgejoName}";
|
|
};
|
|
subdomain = forgejoSubdomain;
|
|
paths = {
|
|
path0 = "${servicePath}/${forgejoLabel}";
|
|
};
|
|
ports = {
|
|
port0 = 3033;
|
|
};
|
|
ssl = {
|
|
cert = "${sslPath}/${forgejoSubdomain}.${domain3}/fullchain.pem";
|
|
key = "${sslPath}/${forgejoSubdomain}.${domain3}/key.pem";
|
|
};
|
|
}
|