Skip to content

Commit

Permalink
fix: Correctly handle target path in reverse proxy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Dec 29, 2024
1 parent 9157a0d commit 8c30dee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func NewMetricsProxy(cfg Config) (*httputil.ReverseProxy, error) {
proxy := &httputil.ReverseProxy{
Rewrite: func(pr *httputil.ProxyRequest) {
pr.SetURL(target)
pr.Out.URL.Path = pr.In.URL.Path
pr.SetXForwarded()
},
FlushInterval: cfg.FlushInterval,
Expand Down

0 comments on commit 8c30dee

Please sign in to comment.