2024-07-30 15:06:34 +01:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
imports = [ ./caddy.nix ];
|
2024-03-02 16:32:38 +00:00
|
|
|
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-12-12 07:26:01 +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
|
|
|
}
|