From fb0f35c7a755b45f43d589ff1291c90e4727f7de Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 2 Mar 2024 16:58:57 +0000 Subject: [PATCH] nix-serve: add signing key, fix setting port in caddy config --- services/nix-serve.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/nix-serve.nix b/services/nix-serve.nix index 816e3495..ff99abe1 100644 --- a/services/nix-serve.nix +++ b/services/nix-serve.nix @@ -3,6 +3,7 @@ services.nix-serve = { enable = true; openFirewall = true; + secretKeyFile = "/root/nix-serve.key"; }; - services.caddy.virtualHosts."nix.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${config.services.nix-serve.port}"; + services.caddy.virtualHosts."nix.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.nix-serve.port}"; }