Skip to content

Commit

Permalink
update nginx, add health check (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
IiiinSea authored Sep 13, 2023
2 parents 5963e44 + 85b7305 commit d265964
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public static String addServer(String config, String name, List<String> serversT
});

List<String> checkList = StringUtils.isNotEmpty(checkUrl)
? Lists.newArrayList("check interval=3000 rise=2 fall=3 timeout=1000 type=http", String.format("check_http_send \"HEAD %s HTTP/1.0\\r\\n\\r\\n\"", checkUrl))
: Lists.newArrayList("check interval=3000 rise=2 fall=3 timeout=1000 type=tcp");
? Lists.newArrayList("check interval=3000 rise=2 fall=3 timeout=1000 default_down=false type=http", String.format("check_http_send \"HEAD %s HTTP/1.0\\r\\n\\r\\n\"", checkUrl))
: Lists.newArrayList("check interval=3000 rise=2 fall=3 timeout=1000 default_down=false type=tcp");
checkList.stream().forEach(p -> {
NgxParam param = new NgxParam();
param.addValue(p);
Expand Down

0 comments on commit d265964

Please sign in to comment.