lets-go:10.4 tls

This commit is contained in:
tamsin johnson 2024-02-07 10:03:56 -08:00
parent 9c353ced51
commit f284b18ee4
2 changed files with 2 additions and 1 deletions

1
snippetbox/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
tls/

View File

@ -75,7 +75,7 @@ func main() {
logger.Info("starting server", slog.String("addr", srv.Addr))
err = srv.ListenAndServe()
err = srv.ListenAndServeTLS("./tls/cert.pem", "./tls/key.pem")
logger.Error(err.Error())
os.Exit(1)