12 lines
310 B
Nix
12 lines
310 B
Nix
{ config, ... }:
|
|
{
|
|
imports = [ ./caddy.nix ];
|
|
services.nix-serve = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
secretKeyFile = "/root/nix-serve.key";
|
|
};
|
|
services.caddy.virtualHosts."nix.xenia.me.uk".extraConfig =
|
|
"reverse_proxy http://localhost:${toString config.services.nix-serve.port}";
|
|
}
|