diff options
Diffstat (limited to 'https.go')
| -rw-r--r-- | https.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/https.go b/https.go deleted file mode 100644 index 00fca19..0000000 --- a/https.go +++ /dev/null @@ -1,18 +0,0 @@ -package main - -import ( - "fmt" - "net/http" -) - -func https() { - // http.HandleFunc("/", okHandler) - - certPath := "/etc/letsencrypt/live/go.wit.com/fullchain.pem" - keyPath := "/etc/letsencrypt/live/go.wit.com/privkey.pem" - - err := http.ListenAndServeTLS(":443", certPath, keyPath, nil) - if err != nil { - fmt.Println("Error starting HTTPS server:", err) - } -} |
