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

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.crt
*.key

View File

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