diff --git a/configs/containers/cube/forgejo_container.nix b/configs/containers/cube/forgejo_container.nix index 775f026..83f2981 100644 --- a/configs/containers/cube/forgejo_container.nix +++ b/configs/containers/cube/forgejo_container.nix @@ -1,18 +1,22 @@ { lib, pkgs, config, ... }: { deployment = { - targetHost = "192.168.178.37"; + targetHost = "10.0.0.6"; targetPort = 22; targetUser = "root"; - tags = [ "cube" ]; + tags = [ "netcup_pve" ]; + }; + networking = { + hostName = "forgejo"; + interfaces.eth0 = { + ipAddress = "10.0.0.6"; + prefixLength = 32; + }; + defaultGateway = { + address = "10.0.0.254"; + interface = "eth0"; + }; }; - networking.hostName = "forgejo"; - networking.interfaces.wgbr.ipv4.addresses = [ - { - address = "10.8.1.4"; - prefixLength = 24; - } - ]; imports = [ ../../container_config.nix ../../services/forgejo.nix diff --git a/configs/services/nginx.nix b/configs/services/nginx.nix index 863f69a..005f0d6 100644 --- a/configs/services/nginx.nix +++ b/configs/services/nginx.nix @@ -34,6 +34,13 @@ proxyPass = "http://10.0.0.5:3456"; }; }; + "new.git.cdaut.de" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://10.0.0.6:3000"; + }; + }; }; };