Added TLS

This commit is contained in:
Pablu23
2024-06-09 20:21:42 +02:00
parent 029abdc9bb
commit 92ff0976ba
2 changed files with 4 additions and 2 deletions

View File

@@ -97,6 +97,6 @@ func main() {
})
fmt.Println("Starting server on :80")
http.ListenAndServe(":80", nil)
fmt.Println("Starting server on :443")
http.ListenAndServeTLS(":443", "server.crt", "server.key", nil)
}