File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.20-1-buster as build-env
1+ FROM golang:1.20.5-bullseye as build-env
22
33ADD . /app
44WORKDIR /app
Original file line number Diff line number Diff line change 22
33version=$1
44
5- docker build -t mcorbin /cabourotte:${version} .
6- docker push mcorbin /cabourotte:${version}
5+ docker build -t appclacks /cabourotte:${version} .
6+ docker push appclacks /cabourotte:${version}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ type HTTPHealthcheckConfiguration struct {
2727 ValidStatus []uint `json:"valid-status" yaml:"valid-status"`
2828 // can be an IP or a domain
2929 Target string `json:"target"`
30+ Host string `json:"host,omitempty"`
3031 Method string `json:"method"`
3132 Port uint `json:"port"`
3233 Redirect bool `json:"redirect"`
@@ -233,6 +234,9 @@ func (h *HTTPHealthcheck) Execute() error {
233234 if h .Config .Redirect {
234235 redirect = nil
235236 }
237+ if h .Config .Host != "" {
238+ req .Host = h .Config .Host
239+ }
236240 client := & http.Client {
237241 Transport : h .transport ,
238242 CheckRedirect : func (req * http.Request , via []* http.Request ) error {
You can’t perform that action at this time.
0 commit comments