Skip to content

Commit

Permalink
skip insecurity verify
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Gonzalez Labrador committed Jan 15, 2021
1 parent 7bbe100 commit 6e4d441
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/metrics/driver/xcloud/xcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"bytes"
"encoding/json"
"errors"
"crypto/tls"
"fmt"
"io/ioutil"
"net/http"
Expand Down Expand Up @@ -63,7 +64,10 @@ func (d *CloudDriver) refresh() error {

// get configuration from internal_metrics endpoint exposed
// by the sciencemesh app
client := &http.Client{}
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
client := &http.Client{Transport: tr}

// endpoint example: https://mybox.com or https://mybox.com/owncloud
endpoint := fmt.Sprintf("%s/index.php/apps/sciencemesh/internal_metrics", d.instance)
Expand Down Expand Up @@ -118,7 +122,7 @@ func (d *CloudDriver) refresh() error {
Name: cd.Settings.Hostname + " - REVAD",
URL: cd.Settings.Siteurl,
Properties: &MentixServiceProperties{
MetricsPath: fmt.Sprintf("%s/index.php/apps/sciencemesh/metrics", cd.Settings.Siteurl),
MetricsPath: "/index.php/apps/sciencemesh/metrics",
},
Type: &MentixServiceType{
Name: "REVAD",
Expand Down

0 comments on commit 6e4d441

Please sign in to comment.