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*/ ''
${domain}
'') sortedDomains; + list = map + (domain: /*html*/ '' +
+ ${domain} +
'') + sortedDomains; items = strings.concatStringsSep "\n" list; - html = /*html*/ '' - - - Hosted Sites - - - -

Hosted Sites

-
- ${items} -
- - ''; + html = /*html*/ + '' + + + Hosted Sites + + + +

Hosted Sites

+
+ ${items} +
+ + ''; in '' header Content-Type text/html