mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
caddy: Configure virtual hosts inside each web-service's module instead of in the host configs
This commit is contained in:
parent
dfeb11dfbd
commit
c9f05a040e
23 changed files with 130 additions and 170 deletions
|
|
@ -26,6 +26,10 @@ in
|
|||
settings.PORT = toString cfg.port;
|
||||
};
|
||||
|
||||
custom.persist.directories = [ config.services.uptime-kuma.settings.DATA_DIR ];
|
||||
custom = {
|
||||
services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
|
||||
|
||||
persist.directories = [ config.services.uptime-kuma.settings.DATA_DIR ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue