From 3d7ff036090c5a26b71dc0d405ba21a3d26d1d65 Mon Sep 17 00:00:00 2001 From: "Kelvin Ly (on the cloud)" Date: Fri, 19 Jul 2019 03:40:45 +0000 Subject: [PATCH] Fix some port stuff for developer mode --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 0ef703b..2379ca1 100644 --- a/main.go +++ b/main.go @@ -319,7 +319,7 @@ func startServer(srv *http.Server) { serveMux := http.NewServeMux() if !*devmode { - serveMux.HandleFunc("dev."+DOMAIN_NAME+"/", forwardRequest(8444, "https")) + serveMux.HandleFunc("dev."+DOMAIN_NAME+"/", forwardRequest(8081, "http")) } serveMux.HandleFunc("/", rootHandler) //serveMux.Handle("/certbot/", http.StripPrefix("/certbot/", http.FileServer(http.Dir("./certbot-tmp")))) @@ -379,7 +379,7 @@ func startServer(srv *http.Server) { } if *devmode { - srv.Addr = ":8444" + srv.Addr = ":8081" srv.Handler = serveMux } else { srv.Addr = ":8443"