diff --git a/hosts/pulsebert/default.nix b/hosts/pulsebert/default.nix index e95c633a..e06d3a40 100644 --- a/hosts/pulsebert/default.nix +++ b/hosts/pulsebert/default.nix @@ -1,8 +1,5 @@ { config, lib, pkgs, ... }: -let - octoprintPort = 8080; -in { imports = [ ./hardware-configuration.nix @@ -120,7 +117,7 @@ in enableACME = true; forceSSL = true; locations."/" = { - proxyPass = "http://127.0.0.1:${toString octoprintPort}"; + proxyPass = "http://127.0.0.1:${toString config.services.octoprint.port}"; proxyWebsockets = true; extraConfig = '' proxy_set_header X-Scheme $scheme; @@ -142,7 +139,7 @@ in octoprint = rec { enable = true; - port = octoprintPort; + port = 8080; extraConfig.webcam = { snapshot = "http://localhost:3020?action=snapshot"; stream = "https://drkkr.hq.c3d2.de/cam/stream";