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
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue