Skip to content

Commit

Permalink
Fixing bug with reverse proxy path
Browse files Browse the repository at this point in the history
Addresses latter part of #224
  • Loading branch information
safaci2000 committed Dec 28, 2023
1 parent 7503ab7 commit 0ee77ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/service/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ func (s *DashNGoImpl) Login() {
if err != nil {
log.Fatal("invalid Grafana URL")
}
path, err := url.JoinPath(u.Path, "/api")
if err != nil {
log.Fatal("invalid Grafana URL Path")
}
var clientTransport *http.Transport
httpTransportCfg := client.TransportConfig{
Host: u.Host,
BasePath: "/api",
BasePath: path,
Schemes: []string{u.Scheme},
//NumRetries: 3,
}
Expand Down

0 comments on commit 0ee77ef

Please sign in to comment.