forked from tangled.org/core
this repo has no description

use https for knot ops

Changed files
+3 -3
appview
+2 -2
appview/state/git_http.go
···
repo := chi.URLParam(r, "repo")
// TODO: make this https for production!
-
targetURL := fmt.Sprintf("http://%s/%s/%s/info/refs?%s", knot, user.DID, repo, r.URL.RawQuery)
+
targetURL := fmt.Sprintf("https://%s/%s/%s/info/refs?%s", knot, user.DID, repo, r.URL.RawQuery)
resp, err := http.Get(targetURL)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
···
knot := r.Context().Value("knot").(string)
repo := chi.URLParam(r, "repo")
// TODO: make this https for production!
-
targetURL := fmt.Sprintf("http://%s/%s/%s/git-upload-pack?%s", knot, user.DID, repo, r.URL.RawQuery)
+
targetURL := fmt.Sprintf("https://%s/%s/%s/git-upload-pack?%s", knot, user.DID, repo, r.URL.RawQuery)
client := &http.Client{}
// Create new request
+1 -1
appview/state/signer.go
···
},
}
-
url, err := url.Parse(fmt.Sprintf("http://%s", domain))
+
url, err := url.Parse(fmt.Sprintf("https://%s", domain))
if err != nil {
return nil, err
}