lets-go:10.4 tls
This commit is contained in:
parent
9c353ced51
commit
f284b18ee4
1
snippetbox/.gitignore
vendored
Normal file
1
snippetbox/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
tls/
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user