aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-06-06 18:53:40 -0400
committerChristine Dodrill <me@christine.website>2019-06-06 18:53:40 -0400
commite6d7c3f347d448144ef4079c94931606cb13bae3 (patch)
treeabcd880aff29c5aefea38fb10123a4836c70fdba /cmd
parent4bd92e73f052a0f8b6920372aaa4c51da6957c07 (diff)
downloadx-e6d7c3f347d448144ef4079c94931606cb13bae3.tar.xz
x-e6d7c3f347d448144ef4079c94931606cb13bae3.zip
don't do that
Diffstat (limited to 'cmd')
-rw-r--r--cmd/within.website/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/within.website/main.go b/cmd/within.website/main.go
index a6100bb..8302c83 100644
--- a/cmd/within.website/main.go
+++ b/cmd/within.website/main.go
@@ -57,15 +57,15 @@ func main() {
}
for _, repo := range *githubRepos {
- http.Handle("/"+repo, vanity.GitHubHandler(*domain+"/"+repo, *githubUsername, repo, "https", *goProxyServer))
- http.Handle("/"+repo+"/", vanity.GitHubHandler(*domain+"/"+repo, *githubUsername, repo, "https", *goProxyServer))
+ http.Handle("/"+repo, vanity.GitHubHandler(*domain+"/"+repo, *githubUsername, repo, "https"))
+ http.Handle("/"+repo+"/", vanity.GitHubHandler(*domain+"/"+repo, *githubUsername, repo, "https"))
ln.Log(ctx, ln.F{"github_repo": repo, "github_user": *githubUsername}, ln.Info("adding github repo"))
}
for _, repo := range *gogsRepos {
- http.Handle("/"+repo, vanity.GogsHandler(*domain+"/"+repo, *gogsDomain, *gogsUsername, repo, "https", *goProxyServer))
- http.Handle("/"+repo+"/", vanity.GogsHandler(*domain+"/"+repo, *gogsDomain, *gogsUsername, repo, "https", *goProxyServer))
+ http.Handle("/"+repo, vanity.GogsHandler(*domain+"/"+repo, *gogsDomain, *gogsUsername, repo, "https"))
+ http.Handle("/"+repo+"/", vanity.GogsHandler(*domain+"/"+repo, *gogsDomain, *gogsUsername, repo, "https"))
ln.Log(ctx, ln.F{"gogs_domain": *gogsDomain, "gogs_username": *gogsUsername, "gogs_repo": repo}, ln.Info("adding gogs repo"))
}