Ways #98

Merged
max merged 10 commits from pr-cluster-reverse-proxy into master 2024-07-04 22:05:22 +03:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit c484a2cf02 - Show all commits

View file

@ -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 = { };

View file

@ -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 [