nix-serve: add signing key, fix setting port in caddy config
This commit is contained in:
parent
ea0c55127b
commit
fb0f35c7a7
|
@ -3,6 +3,7 @@
|
||||||
services.nix-serve = {
|
services.nix-serve = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = 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}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue