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 = {
|
services.forge = {
|
||||||
nodes.server = [ "VEGAS" ];
|
nodes.server = [ "VEGAS" ];
|
||||||
nixos.server = ./server.nix;
|
nixos.server = ./server.nix;
|
||||||
|
meshLinks.server = {
|
||||||
|
name = "forge";
|
||||||
|
link.protocol = "http";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dns.records.forge.target = map
|
ways.forge.target = let
|
||||||
(node: depot.hours.${node}.interfaces.primary.addrPublic)
|
host = builtins.head config.services.forge.nodes.server;
|
||||||
config.services.forge.nodes.server;
|
in config.hostLinks.${host}.forge.url;
|
||||||
|
|
||||||
garage = {
|
garage = {
|
||||||
keys.forgejo = { };
|
keys.forgejo = { };
|
||||||
|
|
|
@ -9,7 +9,7 @@ let
|
||||||
|
|
||||||
host = "forge.${domain}";
|
host = "forge.${domain}";
|
||||||
|
|
||||||
link = config.links.forge;
|
link = cluster.config.hostLinks.${config.networking.hostName}.forge;
|
||||||
|
|
||||||
exe = lib.getExe config.services.forgejo.package;
|
exe = lib.getExe config.services.forgejo.package;
|
||||||
in
|
in
|
||||||
|
@ -43,8 +43,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
links.forge.protocol = "http";
|
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = depot.packages.forgejo;
|
package = depot.packages.forgejo;
|
||||||
|
@ -101,8 +99,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."${host}" = vhosts.proxy link.url;
|
|
||||||
|
|
||||||
systemd.services.forgejo.preStart = let
|
systemd.services.forgejo.preStart = let
|
||||||
providerName = "PrivateVoidAccount";
|
providerName = "PrivateVoidAccount";
|
||||||
args = lib.escapeShellArgs [
|
args = lib.escapeShellArgs [
|
||||||
|
|
Loading…
Reference in a new issue