cluster/services/forge: switch to ways
This commit is contained in:
parent
01f113046f
commit
c484a2cf02
2 changed files with 8 additions and 8 deletions
|
@ -4,11 +4,15 @@
|
|||
services.forge = {
|
||||
nodes.server = [ "VEGAS" ];
|
||||
nixos.server = ./server.nix;
|
||||
meshLinks.server = {
|
||||
name = "forge";
|
||||
link.protocol = "http";
|
||||
};
|
||||
};
|
||||
|
||||
dns.records.forge.target = map
|
||||
(node: depot.hours.${node}.interfaces.primary.addrPublic)
|
||||
config.services.forge.nodes.server;
|
||||
ways.forge.target = let
|
||||
host = builtins.head config.services.forge.nodes.server;
|
||||
in config.hostLinks.${host}.forge.url;
|
||||
|
||||
garage = {
|
||||
keys.forgejo = { };
|
||||
|
|
|
@ -9,7 +9,7 @@ let
|
|||
|
||||
host = "forge.${domain}";
|
||||
|
||||
link = config.links.forge;
|
||||
link = cluster.config.hostLinks.${config.networking.hostName}.forge;
|
||||
|
||||
exe = lib.getExe config.services.forgejo.package;
|
||||
in
|
||||
|
@ -43,8 +43,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
links.forge.protocol = "http";
|
||||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
package = depot.packages.forgejo;
|
||||
|
@ -101,8 +99,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."${host}" = vhosts.proxy link.url;
|
||||
|
||||
systemd.services.forgejo.preStart = let
|
||||
providerName = "PrivateVoidAccount";
|
||||
args = lib.escapeShellArgs [
|
||||
|
|
Loading…
Reference in a new issue