diff --git a/system/services/caddy.nix b/system/services/caddy.nix index 4ebdfca..d282812 100644 --- a/system/services/caddy.nix +++ b/system/services/caddy.nix @@ -17,29 +17,35 @@ in reverse_proxy 192.168.100.1 ''; - services.caddy.virtualHosts."hosts.tigor.web.id".extraConfig = + services.caddy.virtualHosts."tigor.web.id".extraConfig = let domains = attrsets.mapAttrsToList (name: _: strings.removePrefix "https://" name) config.services.caddy.virtualHosts; sortedDomains = lists.sort (a: b: a < b) domains; - list = map (domain: /*html*/ ''
'') sortedDomains; + list = map + (domain: /*html*/ '' +