mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +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
|
|
@ -76,34 +76,6 @@
|
|||
enable = true;
|
||||
domain = "alloy-${config.networking.hostName}.${tailscaleDomain}";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
memos = {
|
||||
inherit (services.memos) domain port;
|
||||
};
|
||||
actualbudget = {
|
||||
inherit (services.actualbudget) domain port;
|
||||
};
|
||||
freshrss = {
|
||||
inherit (services.freshrss) domain port;
|
||||
};
|
||||
alloy = {
|
||||
inherit (services.alloy) domain port;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue