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
··· 15 15 repo := chi.URLParam(r, "repo") 16 16 17 17 // TODO: make this https for production! 18 - targetURL := fmt.Sprintf("http://%s/%s/%s/info/refs?%s", knot, user.DID, repo, r.URL.RawQuery) 18 + targetURL := fmt.Sprintf("https://%s/%s/%s/info/refs?%s", knot, user.DID, repo, r.URL.RawQuery) 19 19 resp, err := http.Get(targetURL) 20 20 if err != nil { 21 21 http.Error(w, err.Error(), http.StatusInternalServerError) ··· 48 48 knot := r.Context().Value("knot").(string) 49 49 repo := chi.URLParam(r, "repo") 50 50 // TODO: make this https for production! 51 - targetURL := fmt.Sprintf("http://%s/%s/%s/git-upload-pack?%s", knot, user.DID, repo, r.URL.RawQuery) 51 + targetURL := fmt.Sprintf("https://%s/%s/%s/git-upload-pack?%s", knot, user.DID, repo, r.URL.RawQuery) 52 52 client := &http.Client{} 53 53 54 54 // Create new request
+1 -1
appview/state/signer.go
··· 41 41 }, 42 42 } 43 43 44 - url, err := url.Parse(fmt.Sprintf("http://%s", domain)) 44 + url, err := url.Parse(fmt.Sprintf("https://%s", domain)) 45 45 if err != nil { 46 46 return nil, err 47 47 }