diff --git a/hosts/hub/default.nix b/hosts/hub/default.nix index 5dd8bd9..59f0a96 100644 --- a/hosts/hub/default.nix +++ b/hosts/hub/default.nix @@ -109,6 +109,11 @@ }; }; + networking.firewall.allowedTCPPorts = [ + 80 + 443 + ]; + services.caddy.virtualHosts."users.thewordnerd.info".extraConfig = ''reverse_proxy localhost:17170''; diff --git a/roles/caddy.nix b/roles/caddy.nix index 23aa2dd..0a7e5fe 100644 --- a/roles/caddy.nix +++ b/roles/caddy.nix @@ -6,10 +6,6 @@ package = pkgs.callPackage ../pkgs/caddy.nix { }; email = "nolan@thewordnerd.info"; }; - networking.firewall.allowedTCPPorts = [ - 80 - 443 - ]; age.secrets.tsAuthKey = { file = ../secrets/ts_auth_key.age; owner = config.services.caddy.user;