diff --git a/src/mod/acme/acme.go b/src/mod/acme/acme.go index a8916e3..bcc3c84 100644 --- a/src/mod/acme/acme.go +++ b/src/mod/acme/acme.go @@ -144,7 +144,7 @@ func (a *ACMEHandler) ObtainCert(domains []string, certificateName string, email } else { // (caName == "" || caUrl == "") will use default acme config.CADirURL = a.DefaultAcmeServer - a.Logf("[INFO] Using Default ACME "+a.DefaultAcmeServer+" for CA Directory URL", nil) + a.Logf("Using Default ACME "+a.DefaultAcmeServer+" for CA Directory URL", nil) } } diff --git a/src/mod/acme/acmewizard/acmewizard.go b/src/mod/acme/acmewizard/acmewizard.go index fcdbb74..bd980bd 100644 --- a/src/mod/acme/acmewizard/acmewizard.go +++ b/src/mod/acme/acmewizard/acmewizard.go @@ -75,6 +75,15 @@ func HandleGuidedStepCheck(w http.ResponseWriter, r *http.Request) { httpServerReachable := isHTTPServerAvailable(domain) js, _ := json.Marshal(httpServerReachable) utils.SendJSONResponse(w, string(js)) + } else if stepNo == 10 { + //Resolve public Ip address for tour + publicIp, err := getPublicIPAddress() + if err != nil { + utils.SendErrorResponse(w, err.Error()) + return + } + js, _ := json.Marshal(publicIp) + utils.SendJSONResponse(w, string(js)) } else { utils.SendErrorResponse(w, "invalid step number") } diff --git a/src/mod/dynamicproxy/dpcore/dpcore.go b/src/mod/dynamicproxy/dpcore/dpcore.go index 6f870a2..862f3da 100644 --- a/src/mod/dynamicproxy/dpcore/dpcore.go +++ b/src/mod/dynamicproxy/dpcore/dpcore.go @@ -54,6 +54,9 @@ type ReverseProxy struct { Prepender string Verbal bool + + //Appended by Zoraxy project + } type ResponseRewriteRuleSet struct { diff --git a/src/web/components/httprp.html b/src/web/components/httprp.html index 5eebc2c..28007bb 100644 --- a/src/web/components/httprp.html +++ b/src/web/components/httprp.html @@ -348,6 +348,20 @@ `); }else if (datatype == "inbound"){ let originalContent = $(column).html(); + + //Check if this host is covered within one of the certificates. If not, show the icon + let domainIsCovered = true; + let domains = [payload.RootOrMatchingDomain]; //Domain for getting certificate if needed + for (var i = 0; i < payload.MatchingDomainAlias.length; i++){ + let thisAliasName = payload.MatchingDomainAlias[i]; + domains.push(thisAliasName); + } + if (true){ + domainIsCovered = false; + } + //encode the domain to DOM + let certificateDomains = encodeURIComponent(JSON.stringify(domains)); + column.empty().append(`${originalContent}
Basic Homepage
+Host a static homepage with Zoraxy and point your domain name to your web server.
+Sub-domains Routing
+Add and handle traffic from your subdomains and point them to a dedicated web services somewhere else.
+HTTPS Green Lock(s)
+Turn your unsafe HTTP website into HTTPS using free certificate from public certificate authorities organizations.
+You can add more proxy rules to support more site via domain / subdomains
Overall Network I/O in Current Host Server
diff --git a/src/web/components/webserv.html b/src/web/components/webserv.html index ccc073e..8d099b6 100644 --- a/src/web/components/webserv.html +++ b/src/web/components/webserv.html @@ -13,34 +13,35 @@http://127.0.0.1:8081
in proxy rules to access the web server
http://127.0.0.1:8081
in proxy rules to access the web server
This is a simplified tour to show some of what it can do. + Use your keyboard or click the next button to get going.
+ +Steps 1 / 9