Skip to content

Commit

Permalink
Merge pull request #4 from nksfrank/https
Browse files Browse the repository at this point in the history
add https listner
  • Loading branch information
Niklas Frank authored Feb 27, 2018
2 parents 2fbb264 + e5be276 commit aaf4f10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func main() {

http.HandleFunc("/", indexHandler)
http.HandleFunc("/health", healthCheckHandler)
go http.ListenAndServeTLS(":443", "/run/secrets/server.cert", "/run/secrets/server.key", nil)
err = http.ListenAndServe(":80", nil)
if err != nil {
log.Fatal("ListenAndServe:", err)
Expand Down

0 comments on commit aaf4f10

Please sign in to comment.