diff --git a/ingress/rule.go b/ingress/rule.go index c163dc10..f1beaa8c 100644 --- a/ingress/rule.go +++ b/ingress/rule.go @@ -20,7 +20,8 @@ type Rule struct { // address. Service OriginService `json:"service"` - // Location is an optional string that can specify the Service path (overwriting the Hostname path). + // Location is an optional string specifying the Service path, which + // replaces the first subdirectory of the Hostname path Location string `json:"location"` // Configure the request cloudflared sends to this specific origin. diff --git a/proxy/proxy.go b/proxy/proxy.go index 2ddb994a..7f2097dd 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -84,7 +84,7 @@ func (p *Proxy) ProxyHTTP( fmt.Println(fmt.Sprintf("before: req.URL.Path: %s", req.URL.Path)) parts := strings.Split(req.URL.Path, "/") - fmt.Println("parts:", parts) + // fmt.Println("parts:", parts) if len(parts) > 1 { parts[1] = rule.Location