From 4985fd4a89efc2ce39d1cbeaa89ee9f0b3e53909 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Thu, 10 Jul 2025 18:45:48 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[pi4]=20Fix=20Actual=20container?= =?UTF-8?q?=20not=20working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/pi4/actual.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hosts/pi4/actual.nix b/hosts/pi4/actual.nix index fbf0d50..596cb27 100644 --- a/hosts/pi4/actual.nix +++ b/hosts/pi4/actual.nix @@ -1,6 +1,7 @@ { config, common, ... }: let domain = "beta.budget.${common.domain}"; + port = 8084; in { networking.nat = { @@ -19,11 +20,12 @@ in config = { ... }: { + networking.firewall.allowedTCPPorts = [ port ]; services = { actual = { enable = true; settings = { - port = 8084; + inherit port; loginMethod = "password"; }; }; @@ -35,7 +37,7 @@ in forceSSL = true; enableACME = true; locations."/" = { - proxyPass = "http://${config.containers.actual.localAddress}:8084"; + proxyPass = "http://${config.containers.actual.localAddress}:${toString port}"; proxyWebsockets = true; }; };