feat(OVHCloud): Setup example caddy virtualHost
This commit is contained in:
parent
4283a215a1
commit
000b708e81
1 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
modulesPath,
|
modulesPath,
|
||||||
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
@ -22,11 +23,20 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Proxy
|
# Proxy
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
nss.tools
|
||||||
|
];
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.caddy.packages.${pkgs.system}.caddy;
|
package = inputs.caddy.packages.${pkgs.system}.caddy;
|
||||||
virtualHosts."localhost".extraConfig = ''
|
virtualHosts."siuu.gasdev.fr".extraConfig = ''
|
||||||
respond "Hello, world!"
|
respond "Hello, world!"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
systemd.services.caddy = {
|
||||||
|
serviceConfig = {
|
||||||
|
EnvironmentFile = config.sops.templates."caddy.env".path;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue