Merge branch 'master' of github.com:cactorium/threefortiethofonehamster.com

This commit is contained in:
Kelvin Ly (on the cloud) 2019-07-19 03:35:06 +00:00
commit 16e147dca2
1 changed files with 2 additions and 1 deletions

View File

@ -380,10 +380,11 @@ func startServer(srv *http.Server) {
if *devmode {
srv.Addr = ":8444"
srv.Handler = serveMux
} else {
srv.Addr = ":8443"
srv.Handler = Gzip(serveMux)
}
srv.Handler = Gzip(serveMux)
log.Print("starting server")
if !DEBUG && !*devmode {
log.Fatal(srv.ListenAndServeTLS("/etc/letsencrypt/live/"+DOMAIN_NAME+"/fullchain.pem",