use https for knot ops
Anirudh Oppiliappan 3 hours ago 2 files (+3, -3)
MODIFIED
appview/state/git_http.go
MODIFIED
appview/state/git_http.go
@@ -15,7 +15,7 @@ knot := r.Context().Value("knot").(string)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)@@ -48,7 +48,7 @@ }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
MODIFIED
appview/state/signer.go
MODIFIED
appview/state/signer.go
@@ -41,7 +41,7 @@ Secret: secret,},}- url, err := url.Parse(fmt.Sprintf("http://%s", domain))+ url, err := url.Parse(fmt.Sprintf("https://%s", domain))if err != nil {return nil, err}