Allow custom health checks
This commit is contained in:
parent
a38fcda255
commit
675ce396ac
14 changed files with 340 additions and 41 deletions
|
|
@ -41,8 +41,10 @@ func (c UpstreamByNameServers) Less(i, j int) bool {
|
|||
|
||||
// UpstreamServer describes a server in an NGINX upstream
|
||||
type UpstreamServer struct {
|
||||
Address string
|
||||
Port string
|
||||
Address string
|
||||
Port string
|
||||
MaxFails int
|
||||
FailTimeout int
|
||||
}
|
||||
|
||||
// UpstreamServerByAddrPort sorts upstream servers by address and port
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue