feat(OVHCloud): Added simple caddy config
This commit is contained in:
parent
64dcc1d156
commit
86a896c688
1 changed files with 15 additions and 1 deletions
|
@ -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!"
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue