mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31: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
|
|
@ -49,20 +49,24 @@
|
|||
domain = "budget.${config.custom.services.tailscale.domain}";
|
||||
};
|
||||
|
||||
caddy.virtualHosts = {
|
||||
syncthing-gui = {
|
||||
inherit (config.custom.services.syncthing.gui) domain port;
|
||||
caddy.virtualHosts =
|
||||
let
|
||||
inherit (config.custom) services;
|
||||
in
|
||||
{
|
||||
syncthing-gui = {
|
||||
inherit (services.syncthing.gui) domain port;
|
||||
};
|
||||
filebrowser = {
|
||||
inherit (services.filebrowser) domain port;
|
||||
};
|
||||
radicale = {
|
||||
inherit (services.radicale) domain port;
|
||||
};
|
||||
actualbudget = {
|
||||
inherit (services.actualbudget) domain port;
|
||||
};
|
||||
};
|
||||
filebrowser = {
|
||||
inherit (config.custom.services.filebrowser) domain port;
|
||||
};
|
||||
radicale = {
|
||||
inherit (config.custom.services.radicale) domain port;
|
||||
};
|
||||
actualbudget = {
|
||||
inherit (config.custom.services.actualbudget) domain port;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue