-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/cmd/godoc: add https support? #19315
Comments
We do already have such support, but it's behind a build tag. You can do:
And then it'll listen on port 443 and use LetsEncrypt to get a cert. We can use this bug to track making that more official. |
Thanks. Any way to ``go get`´ this from Github? Golang.org is, for some reason, blocked at my company. Knowing the IT guys here, they'll have it unblocked just in time for Go 20.1... |
I don't know whether |
Pushing this to Go 1.10, by which time I hope we'll have our package management story more sorted out. |
(as my change above depends on golang.org/x/crypto/autocert) |
Pinging this issue because there's an incompatibility between For context, However, It might be worth pushing this Let me know if you need more context. Thanks for all the hard work! Both |
gopls/v0.16.0, released today, contains an integrated documentation viewer, similar in style to pkg.go.dev, but that works on local unpublished packages and even unsaved editor buffers. I'm going to close this issue, since godoc is deprecated. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.8 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOOS="linux"
What did you do?
I'm trying to serve godoc on a server that enforces https redirection
godoc -http=:60000
What did you expect to see?
When I browsed to
https://<url>:60000
, I expected to see a working godoc landing page.What did you see instead?
A page informing me of
ERR_SSL_PROTOCOL_ERROR
"Unable to make a secure connection to the server"
Is there a way to serve godocs over https, using the
godoc
utility?The text was updated successfully, but these errors were encountered: