1
0
Fork 0

reformat a bit

This commit is contained in:
ibizaman 2022-10-20 21:56:35 -07:00
parent 14e8ab7b37
commit 5af627c196

View file

@ -24,14 +24,15 @@ let
let let
proto = optional phpFastcgi "proto fcgi"; proto = optional phpFastcgi "proto fcgi";
in in
concatStringsSep " " ([ concatStringsSep " " (
"server ${serviceName}${toString i} ${s.address}" [
] "server ${serviceName}${toString i} ${s.address}"
++ proto ]
++ (optional (hasAttr "check" s && s.check != null) ( ++ proto
concatStrings (["check"] ++ (map (k: if !hasAttr k s.check then "" else " ${k} ${getAttr k s.check}") ["inter" "downinter" "fall" "rise"])) ++ (optional (hasAttr "check" s && s.check != null) (
)) concatStrings (["check"] ++ (map (k: if !hasAttr k s.check then "" else " ${k} ${getAttr k s.check}") ["inter" "downinter" "fall" "rise"]))
); ))
);
serverslines = imap1 mkServer servers; serverslines = imap1 mkServer servers;