feat(OVHCloud): Added simple caddy config

This commit is contained in:
Updater 2024-09-26 11:50:00 +02:00
parent 64dcc1d156
commit 86a896c688

View file

@ -1,4 +1,9 @@
{modulesPath, ...}: { {
modulesPath,
inputs,
pkgs,
...
}: {
imports = [ imports = [
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
./disko-config.nix ./disko-config.nix
@ -15,4 +20,13 @@
enable = true; enable = true;
allowedTCPPorts = [22 80 443]; allowedTCPPorts = [22 80 443];
}; };
# Proxy
services.caddy = {
enable = true;
package = inputs.caddy.packages.${pkgs.system}.caddy;
virtualHosts."localhost".extraConfig = ''
respond "Hello, world!"
'';
};
} }