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,
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
|
@ -22,11 +23,20 @@
|
|||
};
|
||||
|
||||
# Proxy
|
||||
environment.systemPackages = with pkgs; [
|
||||
nss.tools
|
||||
];
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
package = inputs.caddy.packages.${pkgs.system}.caddy;
|
||||
virtualHosts."localhost".extraConfig = ''
|
||||
virtualHosts."siuu.gasdev.fr".extraConfig = ''
|
||||
respond "Hello, world!"
|
||||
'';
|
||||
};
|
||||
systemd.services.caddy = {
|
||||
serviceConfig = {
|
||||
EnvironmentFile = config.sops.templates."caddy.env".path;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue