From 08642ea6fc762d512320e33370a378045f344d9f Mon Sep 17 00:00:00 2001 From: "niklas.frank" Date: Tue, 27 Feb 2018 09:43:26 +0100 Subject: [PATCH] add https listner --- src/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.go b/src/main.go index 5405cc0..5478564 100644 --- a/src/main.go +++ b/src/main.go @@ -173,6 +173,7 @@ func main() { } http.HandleFunc("/", indexHandler) + 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)