#2021 add HEAD support - minimal (#2360)

This commit is contained in:
Robert Cutajar
2022-08-19 13:27:08 +02:00
committed by GitHub
parent 2ee09d0a66
commit f92d975e7b
4 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -18,14 +18,14 @@ listen stats
listen master
bind *:5000
option httpchk OPTIONS /master
option httpchk HEAD /master
http-check expect status 200
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
{{range gets "/members/*"}} server {{base .Key}} {{$data := json .Value}}{{base (replace (index (split $data.conn_url "/") 2) "@" "/" -1)}} maxconn 100 check port {{index (split (index (split $data.api_url "/") 2) ":") 1}}
{{end}}
listen replicas
bind *:5001
option httpchk OPTIONS /replica
option httpchk HEAD /replica
http-check expect status 200
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
{{range gets "/members/*"}} server {{base .Key}} {{$data := json .Value}}{{base (replace (index (split $data.conn_url "/") 2) "@" "/" -1)}} maxconn 100 check port {{index (split (index (split $data.api_url "/") 2) ":") 1}}