Authcookie TLS
This commit is contained in:
parent
456c28fa55
commit
3df5ff763d
2
.gitignore
vendored
2
.gitignore
vendored
@ -61,3 +61,5 @@ form-ex1/form-ex1
|
|||||||
form-ex2/form-ex2
|
form-ex2/form-ex2
|
||||||
webcounter/webcounter
|
webcounter/webcounter
|
||||||
authcookie/authcookie
|
authcookie/authcookie
|
||||||
|
cert.pem
|
||||||
|
key.pem
|
||||||
|
@ -72,5 +72,5 @@ func main() {
|
|||||||
http.HandleFunc("/", app.HomePage)
|
http.HandleFunc("/", app.HomePage)
|
||||||
http.HandleFunc("/login", app.LoginPage)
|
http.HandleFunc("/login", app.LoginPage)
|
||||||
http.HandleFunc("/logout", app.LogoutPage)
|
http.HandleFunc("/logout", app.LogoutPage)
|
||||||
http.ListenAndServe(":9000", nil)
|
http.ListenAndServeTLS(":9443", "../cert.pem", "../key.pem", nil)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user