reformat a bit
This commit is contained in:
parent
14e8ab7b37
commit
5af627c196
1 changed files with 9 additions and 8 deletions
|
@ -24,14 +24,15 @@ let
|
|||
let
|
||||
proto = optional phpFastcgi "proto fcgi";
|
||||
in
|
||||
concatStringsSep " " ([
|
||||
"server ${serviceName}${toString i} ${s.address}"
|
||||
]
|
||||
++ proto
|
||||
++ (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"]))
|
||||
))
|
||||
);
|
||||
concatStringsSep " " (
|
||||
[
|
||||
"server ${serviceName}${toString i} ${s.address}"
|
||||
]
|
||||
++ proto
|
||||
++ (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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue