From 14d73e8498bf430f547badc745cefd2c8193d0b4 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Tue, 25 Feb 2025 09:39:00 -0500 Subject: [PATCH] port fix ups --- hosts/hl-minipc1.nix | 4 ++-- modules/nixos/server/k3s/default.nix | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hosts/hl-minipc1.nix b/hosts/hl-minipc1.nix index ab4c62b..05a94dd 100644 --- a/hosts/hl-minipc1.nix +++ b/hosts/hl-minipc1.nix @@ -39,7 +39,7 @@ in enable = true; host = "0.0.0.0"; openFirewall = true; - port = ports.dockerRegistry; + port = ports.audiobookshelf; configDir = "/mnt/Data/audiobookshelf/config"; metadtaDir = "/mnt/Data/audiobookshelf/metadata"; }; @@ -47,7 +47,7 @@ in services.dockerRegistry = { enable = false; storagePath = "/mnt/Data/docker-registry"; - port = ports.audiobookshelf; + port = ports.dockerRegistry; openFirewall = true; listenAddress = "0.0.0.0"; enableDelete = true; diff --git a/modules/nixos/server/k3s/default.nix b/modules/nixos/server/k3s/default.nix index 06a57f9..7666db3 100644 --- a/modules/nixos/server/k3s/default.nix +++ b/modules/nixos/server/k3s/default.nix @@ -19,7 +19,17 @@ in }; config = - let openPorts = [ 6443 80 443 ]; + let + openPorts = [ + 6443 # api server + 80 + 443 + 10250 # metrics + 8472 # flannel + 51820 # wireguard + 10251 # scheduler + 10252 # control manager + ]; in lib.mkIf cfg.enable { system.activationScripts.k3sEnv = ''