dotfiles/config/instances/config/forgejo.nix

35 lines
648 B
Nix
Raw Normal View History

2025-01-18 23:55:33 -06:00
{ instancesFunctions }:
let
inherit (instancesFunctions)
domain3
2025-01-08 19:06:14 -06:00
servicePath
sslPath
sopsPath
;
2024-11-10 01:29:37 -06:00
forgejoLabel = "Forgejo";
forgejoName = "forgejo";
forgejoSubdomain = "source";
2025-01-18 23:55:33 -06:00
in
{
2024-11-10 01:29:37 -06:00
label = forgejoLabel;
name = forgejoName;
email = {
2025-01-18 23:55:33 -06:00
address0 = "noreply@${domain3}";
2024-11-10 01:29:37 -06:00
};
sops = {
path0 = "${sopsPath}/${forgejoName}";
};
subdomain = forgejoSubdomain;
paths = {
path0 = "${servicePath}/${forgejoLabel}";
};
ports = {
port0 = 3033;
};
ssl = {
2025-01-18 23:55:33 -06:00
cert = "${sslPath}/${forgejoSubdomain}.${domain3}/fullchain.pem";
key = "${sslPath}/${forgejoSubdomain}.${domain3}/key.pem";
2024-11-10 01:29:37 -06:00
};
}