MCPcopy Create free account
hub / github.com/bytesizedhosting/bcd / main

Function main

cmd/bcd-proxy/main.go:39–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func main() {
40 proxy := NewMultipleHostReverseProxy(proxyPath)
41
42 if !*disableAutoHttps {
43 log.Infoln("Enabling experimental auto-https support")
44 s := NewAutoHttpsServer(*cachePath, *email, proxy)
45 go func() {
46 log.Fatal(s.ListenAndServeTLS("", ""))
47 }()
48 }
49
50 log.Fatal(http.ListenAndServe(":"+*port, proxy))
51}

Callers

nothing calls this directly

Calls 2

NewAutoHttpsServerFunction · 0.85

Tested by

no test coverage detected