mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Simplify caddy.virtualHosts declarations
This commit is contained in:
parent
b82eeb8595
commit
1b698ece70
3 changed files with 60 additions and 48 deletions
|
|
@ -57,20 +57,24 @@
|
|||
domain = "logs.${config.custom.services.tailscale.domain}";
|
||||
};
|
||||
|
||||
caddy.virtualHosts = {
|
||||
gatus = {
|
||||
inherit (config.custom.services.gatus) domain port;
|
||||
caddy.virtualHosts =
|
||||
let
|
||||
inherit (config.custom) services;
|
||||
in
|
||||
{
|
||||
gatus = {
|
||||
inherit (services.gatus) domain port;
|
||||
};
|
||||
ntfy = {
|
||||
inherit (services.ntfy) domain port;
|
||||
};
|
||||
grafana = {
|
||||
inherit (services.grafana) domain port;
|
||||
};
|
||||
victorialogs = {
|
||||
inherit (services.victorialogs) domain port;
|
||||
};
|
||||
};
|
||||
ntfy = {
|
||||
inherit (config.custom.services.ntfy) domain port;
|
||||
};
|
||||
grafana = {
|
||||
inherit (config.custom.services.grafana) domain port;
|
||||
};
|
||||
victorialogs = {
|
||||
inherit (config.custom.services.victorialogs) domain port;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue