Skip to content

Commit 0ee77ef

Browse files
committed
Fixing bug with reverse proxy path
Addresses latter part of #224
1 parent 7503ab7 commit 0ee77ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/service/login.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ func (s *DashNGoImpl) Login() {
2929
if err != nil {
3030
log.Fatal("invalid Grafana URL")
3131
}
32+
path, err := url.JoinPath(u.Path, "/api")
33+
if err != nil {
34+
log.Fatal("invalid Grafana URL Path")
35+
}
3236
var clientTransport *http.Transport
3337
httpTransportCfg := client.TransportConfig{
3438
Host: u.Host,
35-
BasePath: "/api",
39+
BasePath: path,
3640
Schemes: []string{u.Scheme},
3741
//NumRetries: 3,
3842
}

0 commit comments

Comments
 (0)