From ec73b4342579a3a4238feccd199493fac388734f Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 7 Sep 2023 21:26:26 +0200 Subject: [PATCH] fix: caddy serving cups.local, help.local --- modules/core/networking.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/modules/core/networking.nix b/modules/core/networking.nix index fb4f6d3d..e9f585d7 100644 --- a/modules/core/networking.nix +++ b/modules/core/networking.nix @@ -55,19 +55,14 @@ in { ++ lib.optionals cfg.enableHelp ["help.local"]; }; - # Changing the Caddyfile should only trigger a reload, not a restart - systemd.services.caddy.reloadTriggers = [ - config.services.caddy.configFile - ]; - # Caddy reverse proxy for local services like cups services.caddy = { - enable = lib.mkDefault cfg.enableCaddy; - globalConfig = lib.mkDefault '' + enable = lib.mkForce cfg.enableCaddy; + globalConfig = lib.mkForce '' default_bind 127.0.0.1 auto_https off ''; - extraConfig = lib.mkDefault (concatStringsSep "\n" [ + extraConfig = lib.mkForce (concatStringsSep "\n" [ (lib.optionalString config.pub-solar.printing.enable ''