The Simulacrum: Stage 5 #113

Merged
max merged 5 commits from pr-simulacrum-stage-5 into master 2024-08-16 20:54:11 +03:00
Showing only changes of commit 77d92b7c1f - Show all commits

View file

@ -17,21 +17,25 @@
}; };
}; };
ways.forge.target = let ways = let
host = builtins.head config.services.forge.nodes.server; host = builtins.head config.services.forge.nodes.server;
in config.hostLinks.${host}.forge.url; in config.lib.forService "forge" {
forge.target = config.hostLinks.${host}.forge.url;
};
garage = { garage = config.lib.forService "forge" {
keys.forgejo.locksmith.nodes = config.services.forge.nodes.server; keys.forgejo.locksmith.nodes = config.services.forge.nodes.server;
buckets.forgejo.allow.forgejo = [ "read" "write" ]; buckets.forgejo.allow.forgejo = [ "read" "write" ];
}; };
monitoring.blackbox.targets.forge = { monitoring.blackbox.targets.forge = config.lib.forService "forge" {
address = "https://forge.${depot.lib.meta.domain}/api/v1/version"; address = "https://forge.${depot.lib.meta.domain}/api/v1/version";
module = "https2xx"; module = "https2xx";
}; };
dns.records."ssh.forge".target = map dns.records = config.lib.forService "forge" {
(node: depot.hours.${node}.interfaces.primary.addrPublic) "ssh.forge".target = map
config.services.forge.nodes.server; (node: depot.hours.${node}.interfaces.primary.addrPublic)
config.services.forge.nodes.server;
};
} }