nuc: switch to caddy

This commit is contained in:
Rouven Seifert 2024-05-21 18:44:04 +02:00
parent 6e82ae5be8
commit 657ae1385e
10 changed files with 69 additions and 98 deletions

View file

@ -10,9 +10,7 @@ in
enable = true;
secretKeyFile = config.age.secrets.cache.path;
};
services.nginx.virtualHosts."${domain}" = {
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.nix-serve.port}";
};
};
services.caddy.virtualHosts."${domain}".extraConfig = ''
reverse_proxy 127.0.0.1:${toString config.services.nix-serve.port}
'';
}