2024-03-02 16:32:38 +00:00
|
|
|
{config, ...}: {
|
|
|
|
imports = [./caddy.nix];
|
|
|
|
services.nix-serve = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
2024-03-02 16:58:57 +00:00
|
|
|
secretKeyFile = "/root/nix-serve.key";
|
2024-03-02 16:32:38 +00:00
|
|
|
};
|
2024-03-02 16:58:57 +00:00
|
|
|
services.caddy.virtualHosts."nix.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.nix-serve.port}";
|
2024-03-02 16:32:38 +00:00
|
|
|
}
|