|
@@ -354,9 +354,15 @@ func ReverseProxyHandleEditEndpoint(w http.ResponseWriter, r *http.Request) {
|
|
if stv == "" {
|
|
if stv == "" {
|
|
stv = "false"
|
|
stv = "false"
|
|
}
|
|
}
|
|
-
|
|
|
|
skipTlsValidation := (stv == "true")
|
|
skipTlsValidation := (stv == "true")
|
|
|
|
|
|
|
|
+ //Load bypass TLS option
|
|
|
|
+ bpgtls, _ := utils.PostPara(r, "bpgtls")
|
|
|
|
+ if bpgtls == "" {
|
|
|
|
+ bpgtls = "false"
|
|
|
|
+ }
|
|
|
|
+ bypassGlobalTLS := (bpgtls == "true")
|
|
|
|
+
|
|
rba, _ := utils.PostPara(r, "bauth")
|
|
rba, _ := utils.PostPara(r, "bauth")
|
|
if rba == "" {
|
|
if rba == "" {
|
|
rba = "false"
|
|
rba = "false"
|
|
@@ -376,6 +382,7 @@ func ReverseProxyHandleEditEndpoint(w http.ResponseWriter, r *http.Request) {
|
|
RootName: targetProxyEntry.RootOrMatchingDomain,
|
|
RootName: targetProxyEntry.RootOrMatchingDomain,
|
|
Domain: endpoint,
|
|
Domain: endpoint,
|
|
RequireTLS: useTLS,
|
|
RequireTLS: useTLS,
|
|
|
|
+ BypassGlobalTLS: false,
|
|
SkipCertValidations: skipTlsValidation,
|
|
SkipCertValidations: skipTlsValidation,
|
|
RequireBasicAuth: requireBasicAuth,
|
|
RequireBasicAuth: requireBasicAuth,
|
|
BasicAuthCredentials: targetProxyEntry.BasicAuthCredentials,
|
|
BasicAuthCredentials: targetProxyEntry.BasicAuthCredentials,
|
|
@@ -388,6 +395,7 @@ func ReverseProxyHandleEditEndpoint(w http.ResponseWriter, r *http.Request) {
|
|
MatchingDomain: targetProxyEntry.RootOrMatchingDomain,
|
|
MatchingDomain: targetProxyEntry.RootOrMatchingDomain,
|
|
Domain: endpoint,
|
|
Domain: endpoint,
|
|
RequireTLS: useTLS,
|
|
RequireTLS: useTLS,
|
|
|
|
+ BypassGlobalTLS: bypassGlobalTLS,
|
|
SkipCertValidations: skipTlsValidation,
|
|
SkipCertValidations: skipTlsValidation,
|
|
RequireBasicAuth: requireBasicAuth,
|
|
RequireBasicAuth: requireBasicAuth,
|
|
BasicAuthCredentials: targetProxyEntry.BasicAuthCredentials,
|
|
BasicAuthCredentials: targetProxyEntry.BasicAuthCredentials,
|