GeezerVison is showing github.com — GitHub - jgall/easyhttps: A golang package for easy integration of https into existing http servers
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
|
Repository files navigation
A golang package for easy integration of https (using TLS) into existing http servers
func main() {
srv := &http.Server{
Handler: http.FileServer(http.Dir("static")),
Addr: ":80",
}
httpsSrv := easyhttps.WrapHTTPS(srv, ":443", "tlsCertCache", "example.com")
log.Fatal(httpsSrv.ListenAndServe())
}
About
A golang package for easy integration of https into existing http servers
Resources
Stars
0 stars
Watchers
1 watching
Forks